[Javascript] changing image src

Geoff Corriere geoff at cpe1.com
Fri Jun 20 10:49:28 CDT 2003


How about disabling the mouseover/on features (and maybe even the page 
loading) just to isolate the problem more.

I think you are right about the mouseout. You move the cursor over the 
image and it goes from "nada.gif" to "bt_04midiaext_on". Clicking on 
the image loads "bt_04midiaext_on.gif" into the image, which is what is 
already loaded. Then the user moves the cursor out of the image and the 
mouseout is called, re-loading "nada.gif".

What is MM_swapImgRestore() doing? Can you pass it a parameter so it 
does not load the original image, "nada"? Your onclick might have to 
change what happens on the mouseout.

Geoff



More information about the Javascript mailing list