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.
tempest, on 25 June 2006 - 04:29 PM, said:
Place this code between <HEAD and </HEAD tags.
Place the following code within all of the image tags you'd like the effect to be applied.
And your image tag might look like that.
"yourimage.gif" in last code change to your image URL!!!
<script language="JavaScript1.2">
<!--
function makevisible(cur,which){
strength=(which==0)? 1 : 0.2
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else 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!!!













