
Home
Links and Buttons
Here
|
Categories
Partners
DaniWeb is an exciting community for web developers, Internet marketers, and technology enthusiasts.
Other Sections
Advertisement
Compatibility
|
|
FF1+ IE5+ Opr7+
Flashing Links script Author:
Note: Last updated June 30th, 03'. Added NS6 compatibility plus efficiency. Description: 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! Demo: The script allows you to flash a link in two ways- flashing the link text itself, or its background: Dynamic Drive, your DHTML source! (flashing link text) Visit JavaScript Kit for free JavaScripts! (flashing link background) Simply insert the below script to the <HEAD> section of your document: 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> The result is: 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. |