I'm trying to use mutiply Hover buttons to change a single image. I sure there is a way to do this. I'm just haven't figured out how. I pasted my incorrect code below. Does any one know how to modify it so that it does work??
<html>
<head>
<title>side bar</title>
<SCRIPT language="JavaScript">
<!--
if (document.images)
{
image_off= new Image();
image_off.src="../side/ddplain.gif";
image1= new Image();
image1.src=" image2= new Image();
image2.src=" image3= new Image();
image3.src=" image4= new Image();
image4.src=" image5= new Image();
image5.src="
image6= new Image();
image6.src=" image7= new Image();
image7.src=" image8= new Image();
image8.src=" image9= new Image();
image9.src="
image10= new Image();
image10.src="image11= new Image();
image11.src="image12= new Image(); image12.src="image13= new Image();
image13.src="image14= new Image();
image14.src="}
function change(picName,imgName,picName2,imgName2)
{
if (document.images)
{
imgOn=eval(imgName + ".src"
;
document[picName].src= imgOn;
imgOn2=eval(imgName2 + ".src"
;
document[picName2].src= imgOn2;
}
//-->
</SCRIPT>
<SCRIPT language="JavaScript">
<!--
function change2()
{
parent.side_bar.location="side_barP.html";
parent.title.location="resume.html";
}
//-->
</SCRIPT>
<style type="text/css">
<!--
a { color: #CCCCCC; text-decoration: none; font-family: Arial; font-size: 10pt }
a:hover { color: red; text-decoration: none; font-family: Arial; font-size: 10pt }
-->
</style>
</head>
<body bgcolor="#000066" leftmargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<table border="0" cellspacing="3" cellpadding="3" frame="hsides" bordercolor="#9999CC" width="100%">
<tr>
<td align="center" bgcolor="#000033">
<A HREF="title.html" target="title" onMouseover="change('pic20','image_off','pic1','image1')" onMouseout="change('pic20','image_off','pic1','image10')">
<IMG SRC=" name="pic1" width="125" height="15" border="0"></A>
</td>
</tr>
<tr>
<td align="center" bgcolor="#000033">
<A HREF="javascript:change2()" onMouseover="change('pic20','image6','pic2','image2')" onMouseout="change('pic20','image_off','pic2','image11')">
<IMG SRC=" name="pic2" width="125" height="15" border="0"></A>
</td>
</tr>
<td align="center" bgcolor="#000033">
<A HREF="Ye_Oscar_Web.doc" target="new window" onMouseover="change('pic20',image7','pic3','image3')" onMouseout="change('pic20','image_off','pic3','image12')">
<IMG SRC=" name="pic3" width="125" height="15" border="0"></A>
</td>
</tr>
<tr>
<td align="center" bgcolor="#000033">
<A HREF="confirm.html" target="title" onMouseover="change('pic20','image8','pic4','image4')" onMouseout="change('pic20','image_off','pic4','image13')">
<IMG SRC=" name="pic4" width="125" height="15" border="0"></A>
</td>
</tr>
<tr>
<td align="center" bgcolor="#000033">
<A HREF="contact.html" target="title" onMouseover="change('pic20','image9','pic5','image5')" onMouseout="change('pic20','image_off','pic5','image14')">
<IMG SRC=" name="pic5" width="125" height="15" border="0"></A>
</td>
</tr>
<tr height="1000">
<td align="center" bgcolor="#000033">
<br>
<img src="side/ddplain.gif" name="pic20">
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>side bar</title>
<SCRIPT language="JavaScript">
<!--
if (document.images)
{
image_off= new Image();
image_off.src="../side/ddplain.gif";
image1= new Image();
image1.src=" image2= new Image();
image2.src=" image3= new Image();
image3.src=" image4= new Image();
image4.src=" image5= new Image();
image5.src="
image6= new Image();
image6.src=" image7= new Image();
image7.src=" image8= new Image();
image8.src=" image9= new Image();
image9.src="
image10= new Image();
image10.src="image11= new Image();
image11.src="image12= new Image(); image12.src="image13= new Image();
image13.src="image14= new Image();
image14.src="}
function change(picName,imgName,picName2,imgName2)
{
if (document.images)
{
imgOn=eval(imgName + ".src"
document[picName].src= imgOn;
imgOn2=eval(imgName2 + ".src"
document[picName2].src= imgOn2;
}
//-->
</SCRIPT>
<SCRIPT language="JavaScript">
<!--
function change2()
{
parent.side_bar.location="side_barP.html";
parent.title.location="resume.html";
}
//-->
</SCRIPT>
<style type="text/css">
<!--
a { color: #CCCCCC; text-decoration: none; font-family: Arial; font-size: 10pt }
a:hover { color: red; text-decoration: none; font-family: Arial; font-size: 10pt }
-->
</style>
</head>
<body bgcolor="#000066" leftmargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<table border="0" cellspacing="3" cellpadding="3" frame="hsides" bordercolor="#9999CC" width="100%">
<tr>
<td align="center" bgcolor="#000033">
<A HREF="title.html" target="title" onMouseover="change('pic20','image_off','pic1','image1')" onMouseout="change('pic20','image_off','pic1','image10')">
<IMG SRC=" name="pic1" width="125" height="15" border="0"></A>
</td>
</tr>
<tr>
<td align="center" bgcolor="#000033">
<A HREF="javascript:change2()" onMouseover="change('pic20','image6','pic2','image2')" onMouseout="change('pic20','image_off','pic2','image11')">
<IMG SRC=" name="pic2" width="125" height="15" border="0"></A>
</td>
</tr>
<td align="center" bgcolor="#000033">
<A HREF="Ye_Oscar_Web.doc" target="new window" onMouseover="change('pic20',image7','pic3','image3')" onMouseout="change('pic20','image_off','pic3','image12')">
<IMG SRC=" name="pic3" width="125" height="15" border="0"></A>
</td>
</tr>
<tr>
<td align="center" bgcolor="#000033">
<A HREF="confirm.html" target="title" onMouseover="change('pic20','image8','pic4','image4')" onMouseout="change('pic20','image_off','pic4','image13')">
<IMG SRC=" name="pic4" width="125" height="15" border="0"></A>
</td>
</tr>
<tr>
<td align="center" bgcolor="#000033">
<A HREF="contact.html" target="title" onMouseover="change('pic20','image9','pic5','image5')" onMouseout="change('pic20','image_off','pic5','image14')">
<IMG SRC=" name="pic5" width="125" height="15" border="0"></A>
</td>
</tr>
<tr height="1000">
<td align="center" bgcolor="#000033">
<br>
<img src="side/ddplain.gif" name="pic20">
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
</td>
</tr>
</table>
</body>
</html>