Forum Moderators: open

Message Too Old, No Replies

Mouse Over Effect

This effect works fine on IE but it blinks in Netscape

         

lucero

1:53 pm on Oct 24, 2003 (gmt 0)

10+ Year Member



I use the following code to have a mouse over effect:
onMouseOver="MM_swapImage('Image64','','image.gif',0)" onMouseOut="MM_swapImgRestore()". This functions are created by Dreamweaver.

This works great on Internet Explorer but in Netscape when you go over the button it disappears and appears again after moving out of the button. If you do this a lot of times the button disappears forever. Can anyone tell what the problem is?

Thank you

korkus2000

2:10 pm on Oct 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What version of netscape and what are you telling DW about compatability in the drop down?

lucero

2:27 pm on Oct 24, 2003 (gmt 0)

10+ Year Member



I guess I'm not tell DW anything about compatibility. The functions DW creates are the following:

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

By the way my Netscape version is 6.