Javascripts > 4x Browser Javascripts > Fading Image Script
Script Title: Fading Image Script
Description: This script makes an image fade in and fade out when the mouse is over it. It is similar to a regular rollover, but it only requires one image.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script language="JavaScript1.2"> /* Fading Image Script Dynamic Drive (www.dynamicdrive.com) */ function makevisible(cur,which){ if (which==0) cur.filters.alpha.opacity=100 else cur.filters.alpha.opacity=20 } </script>
Copy the following code between the <BODY></BODY> tags of your html page.<a href="whatever.htm"><img src="img1.gif" border=0 style="filter:alpha(opacity=20)" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email