Hi All
I sell dresses. I want to have a dress description, then when the user clicks or rollsover a 'more info' button, the description is replaced with size info, colour etc.
I dont want to use layers (using dreamweaver) and I dont want to use pictures (too time consuming and will effect my SEO).
So! I was kindly given this code... my I cant seem to place it where I want it to be on my page....
any tips? or other suggestions? Thanks so much
<title>Untitled Document</title>
<script type="text/javascript">
window.onload = showOriginalText;
function showInfo(thisInfo){
if(thisInfo == "info_1")
document.getElementById('display_info').innerHTML = "This is the info for dress 1.";
else if(thisInfo == "info_2")
document.getElementById('display_info').innerHTML = "This is the info for dress 2.";
else
showOriginalText();
}
function showOriginalText(){
document.getElementById('display_info').innerHTML = "back to original text";
}
</script>
</head>
<body>
<br />
<br />
Dress 2 Dress 1<br />
<a href="javascript:void(0);" onmouseover="showInfo('info_1')" onmouseout="showOriginalText();">More</a><br />
<a href="javascript:void(0);" onmouseover="showInfo('info_2')" onmouseout="showOriginalText();">More</a><br />
<hr />
<p id="display_info"></p>
</body>
</html>
I sell dresses. I want to have a dress description, then when the user clicks or rollsover a 'more info' button, the description is replaced with size info, colour etc.
I dont want to use layers (using dreamweaver) and I dont want to use pictures (too time consuming and will effect my SEO).
So! I was kindly given this code... my I cant seem to place it where I want it to be on my page....
any tips? or other suggestions? Thanks so much
<title>Untitled Document</title>
<script type="text/javascript">
window.onload = showOriginalText;
function showInfo(thisInfo){
if(thisInfo == "info_1")
document.getElementById('display_info').innerHTML = "This is the info for dress 1.";
else if(thisInfo == "info_2")
document.getElementById('display_info').innerHTML = "This is the info for dress 2.";
else
showOriginalText();
}
function showOriginalText(){
document.getElementById('display_info').innerHTML = "back to original text";
}
</script>
</head>
<body>
<br />
<br />
Dress 2 Dress 1<br />
<a href="javascript:void(0);" onmouseover="showInfo('info_1')" onmouseout="showOriginalText();">More</a><br />
<a href="javascript:void(0);" onmouseover="showInfo('info_2')" onmouseout="showOriginalText();">More</a><br />
<hr />
<p id="display_info"></p>
</body>
</html>