FLASHING LINKS | ||||||
Some links are more
important than others on your page...with this script, they will be noticed
more as well. Use it to give any link(s) on your page a flashing trait, with
independently controlled options for each link. Ah, the power of DHTML! » This script was made possible by: Dynamic Drive ! |
||||||
EXAMPLE | ||||||
|
Example Flash Link 0 Example Flash Link 1 |
||||||
CODE (s) | ||||||
========================================================== Step 1: Insert the below validation code into the <head> of your page: <script language="JavaScript1.2" type="text/javascript"> /*********************************************** var flashlinks=new Array() function changelinkcolor(){ function init(){ if (window.addEventListener) </script>
========================================================== Step 2: The script operates by extending all links on your page with three optional attributes, which you apply to the specific link you wish to flash. Here are the attributes:
All three attributes should appear concurrently in the flashing link. For example: <a href="test.htm" id="flashlink0" flashtype=0 flashcolor="green">Example 1</a> <a href="test.htm" id="flashlink1" flashtype=1 flashcolor="lime">Example 2</a> ========================================================== As shown above, to apply the effect to multiple links on the page, increment the ID attribute of each link from "flashlink0" to "flashlink1" etc, depending on the number of flashing links. ========================================================== |
||||||