How To Make Image To Highlight When It`s Mouseovered in General Discussion Posted May 25, 2010 · Report reply Hello, This code is working only in IE browsers and it is not suitable for other browsers. How to ensure that the script is browser compatible. Place this code between <HEAD and </HEAD tags. <script language="JavaScript1.2"><!-- function makevisible(cur,which){strength=(which==0)? 1 : 0.2if (cur.style.MozOpacity)cur.style.MozOpacity=strengthelse if (cur.filters)cur.filters.alpha.opacity=strength*100}// --></SCRIPT> Place the following code within all of the image tags you'd like the effect to be applied. style="filter:alpha(opacity=20);-moz-opacity:0.2" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)" And your image tag might look like that. <img src="yourimage.gif" width="96" height="134" style="filter:alpha(opacity=20);-moz-opacity:0.2" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"> "yourimage.gif" in last code change to your image URL!!!
How To Make Image To Highlight When It`s Mouseovered
in General Discussion
Posted · Report reply
Hello,
This code is working only in IE browsers and it is not suitable for other browsers.
How to ensure that the script is browser compatible.