<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
[COLOR=green]//Pre-load the images[/color]
if (document.images){
image1 = new Image();
image1.src = "images/1.gif";
image2 = new Image();
image2.src = "images/2.gif";
image3 = new Image();
image3.src = "images/3.gif";
image4 = new Image();
image4.src = "images/4.gif";
image5 = new Image();
image5.src = "images/5.gif";
}
function Show(img){ [COLOR=green]//This function will display the image and text[/color]
if (document.images){
TextSpan = eval("document.all.text" + img); [COLOR=green]//Assign the correct span element to be displayed[/color]
TextSpan.style.display = ""; [COLOR=green]//Display the span element[/color]
imgSource = eval("image" + img + ".src"); [COLOR=green]//Declare which of the pre-loaded images above to use[/color]
document.all.picture.src = imgSource; [COLOR=green]//Assign the displayable image to the pre-loaded image's source[/color]
document.all.ImageDiv.style.visibility = "visible"; [COLOR=green]//Make everything visible[/color]
}
}
function Hide(img){ [COLOR=green]//This function will hide the image and text
if (document.images){
document.all.picture.src = "images/blank.gif"; [COLOR=green]//Change the image to a blank image[/color]
document.all.ImageDiv.style.visibility = "hidden"; [COLOR=green]//Hide the entire block[/color]
TextSpan = eval("document.all.text" + img); [COLOR=green]//Assign the correct span element to be hidden[/color]
TextSpan.style.display = "none"; [COLOR=green]//Hide the span element[/color]
}
}
//-->
</script>
</head>
<body>
<table summary="" border="1">
<tr>
<td onmouseover="Show('1');" onmouseout="Hide('1');">Show "image 1"</td>
<td rowspan="5"><div id="ImageDiv" style="visibility:hidden;"><img src="images/blank.gif" name="picture"><br />
This is "Image
<span id="text1" style="display:none;">1</span>
<span id="text2" style="display:none;">2</span>
<span id="text3" style="display:none;">3</span>
<span id="text4" style="display:none;">4</span>
<span id="text5" style="display:none;">5</span>
"</div></td>
</tr>
<tr>
<td onmouseover="Show('2');" onmouseout="Hide('2');">Show "image 2"</td>
</tr>
<tr>
<td onmouseover="Show('3');" onmouseout="Hide('3');">Show "image 3"</td>
</tr>
<tr>
<td onmouseover="Show('4');" onmouseout="Hide('4');">Show "image 4"</td>
</tr>
<tr>
<td onmouseover="Show('5');" onmouseout="Hide('5');">Show "image 5"</td>
</tr>
</table>
</body>
</html>