Forum Moderators: open

Message Too Old, No Replies

onmouseover firefox problem

         

technux

12:16 pm on Apr 16, 2005 (gmt 0)

10+ Year Member



I have a slight problem with a mouseover javascript. It works great in IE. It also works in Firefox, but the page stalls at about 98% load (the loading bar in the lower right corner never completes, but all functions on the page work).

I know it's the script that causes the problem since the site will load fine in firefox if I desable javascripting.

Here is the code I have in <head>:

<script language="javascript" type="text/javascript">
image1 = new Image();
image1.src = "images/1.jpg";

image2 = new Image();
image2.src = "images/2.jpg";

image3 = new Image();
image3.src = "images/3.jpg";
</script>

I use the script like this:

<a href="index.html" onmouseover="image1.src='images/1.jpg';" onmouseout="image1.src='images/1_normal.jpg';"> <img name="image1" src="images/top_support_sh.jpg" width="30" height="29" border="0" alt=""></a>

Can anyone help me?

technux

12:24 pm on Apr 16, 2005 (gmt 0)

10+ Year Member



I fixed the problem! :)

I had rechecked the code over and over again, but somehow I managed to miss a spelling error - UPS! :D