Login
Connect via Facebook

Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Forum Threads
Users Online
Guests Online: 1

Members Online: 0

Total Members: 619
Newest Member: Pranav Adithya
Advertising
Donate
If you like our free products please donate us.

Advertising
View Thread
 Print Thread
Dynamic Highlight link
Admin
Use this nifty script to add a highlight effect to any link, with the highlight color for each link fully customizable. Great way to add emphasis to particular links on your site! Updated to work in NS 6 too!

Insert the below into the <body> section of your page:
Download source  GeSHi: Javascript
  1. <script>
  2. function highlight(which,color){
  3. if (document.all||document.getElementById)
  4. which.style.backgroundColor=color
  5. }
  6. </script>
  7.  
  8. <p align="center"><font face="arial" size="-2">This free script provided by</font><br><font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript Kit</a></font></p>
Parsed in 0.005 seconds, using GeSHi 1.0.8.10


Now, to apply the highlight effect to any link, simply add the below into the <a> tag in question:
Download source  GeSHi: HTML
  1. <a href="http://friendsinwar.com" onMouseover=highlight(this,'yellow') onMouseout="highlight(this,document.bgColor)">Free Wallpapers</a>
Parsed in 0.006 seconds, using GeSHi 1.0.8.10
 
Jump to Forum: