GRADUAL
IMAGE HIGHLIGHT | |||
A script that makes any image(s) appear dull before the mouse moves over it; as the mouse moves over it, the image gradually changes to its original appearance. Use it to instantly add stunning onMouseover effects to your menu images. » This script was made possible by: Dynamic Drive ! |
|||
EXAMPLE | |||
TO VIEW EFFECT, RUN YOUR MOUSE OVER THE ABOVE IMAGES. |
|||
CODE (s) | |||
========================================================== Step 1. Add the following code to the <head></head> section of your HTML document: <script language="JavaScript1.2"> //Gradual-Highlight image script- By Dynamic Drive function high(which2){ function highlightit(cur2){ </script> ========================================================== Step 2: Then, insert the below inside the <img> tag of all of the images you want the effect applied to: style="filter:alpha(opacity=30);-moz-opacity:0.3" onMouseover="high(this)" onMouseout="low(this)" ========================================================== An example would be: <a href="whatever.htm"><img src="mygif.gif" border=0 style="filter:alpha(opacity=30);-moz-opacity:0.3" onMouseover="high(this)" onMouseout="low(this)"></a> ========================================================== |
|||