//flex table opened by JP

Click to See Complete Forum and Search --> : What is wrong with my coding?


mamaentre
05-14-2001, 01:39 PM
I have a mouseover script that I aquired here:
http://www.crosswinds.net/~zooathome/Tutorials/JavaScript/mouseover.html


I can get the images plugged in and working for 1 mouse over.

I cannot make it work for 2.

I have 2 sets if images.

"s1.gif" and its overimage "s1hover.gif"


"s2.gif" and its overimage "s2hover.gif"

Here is the code (disregard the quotations before the opening and closing tags):

"<head>
<SCRIPT language=JavaScript>
<!--
overImage1=new Image(111, 37); outImage1=new Image(111, 37);
overImage1.src="images/s1hover.gif"; outImage1.src="images/s1.gif";
overImage2=new Image(111, 37); outImage2=new Image(111, 37);
overImage2.src="images/s2hover.gif"; outImage2.src="images/s2.gif"
//-->
</SCRIPT>


</head>"


"<body>
<a href="step1.html" onmouseover="image1.src=images/s1hover.gif" onmouseout="image1.src=images/s1.gif">
<img name="image1"src="images/s1.gif" width=111 height=37 border=0></a>

<a href="step2.html" onmouseover="image2.src=images/s2hover.gif" onmouseout="image2.src=images/s2.gif">
<img name="image2"src="images/s2.gif" width=111 height=37 border=0></a>
</body>"

golfcart
05-14-2001, 08:51 PM
Give this a shot. I didnt test it tho.

"<head>
<SCRIPT language=JavaScript>
<!--
overImage1=new Image(111, 37); outImage1=new Image(111, 37);
overImage1.src="images/s1hover.gif"; outImage1.src="images/s1.gif";
overImage2=new Image(111, 37); outImage2=new Image(111, 37);
overImage2.src="images/s2hover.gif"; outImage2.src="images/s2.gif"
//-->
</SCRIPT>


</head>"


"<body>
<a href="step1.html" onmouseover="image1.src=overImage1.src" onmouseout="image1.src=outImage1.src">
<img name="image1"src="images/s1.gif" width=111 height=37 border=0></a>

<a href="step2.html" onmouseover="image2.src=overImage2.src" onmouseout="image2.src=outImage1.src">
<img name="image2"src="images/s2.gif" width=111 height=37 border=0></a>
</body>"

mamaentre
05-16-2001, 08:02 AM
Thanks golfcart. I think I understand now that you only refer to the hoverimage in the head. I was putting stuff where it doesn't go!

golfcart
05-16-2001, 08:11 PM
Cool, glad it worked for you. http://www.sysopt.com/forum/smile.gif

SoopaStar
05-16-2001, 09:20 PM
i got somethign similar i think on www.vetsoftware.com/test/index.htm (http://www.vetsoftware.com/test/index.htm)

Its a modified version of the image-over script foung on www.htmlgoodies.com (http://www.htmlgoodies.com)

Paul

mamaentre
05-17-2001, 08:30 AM
Kool! I l-o-v-e htmlgoodies.com

rh71
05-17-2001, 11:43 AM
For the javascript holyland, go to http://developer.irt.org/script/script.htm