Jump to content
xisto Community

vkthiru

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by vkthiru


  1. 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!!!

     


×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.