Batch User Posted December 18, 2006 Share Posted December 18, 2006 (edited) Okay look at my site: www.berzerkerweb.comYou see the site tab links? When you hover over them they turn lighter blue instantly. How do I go about making them fade to the blue?Heres half of a fade code I started and then I got lost..<script language="JavaScript1.2">function high(which2){theobject=which2highlighting=setInterval("highlightit(theobject)",50)}function low(which2){clearInterval(highlighting)if (which2.style.MozOpacity)which2.style.MozOpacity=0.3else if (which2.filters)which2.filters.alpha.opacity=40}function highlightit(cur2){if (cur2.style.MozOpacity<1)cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1else if (cur2.filters&&cur2.filters.alpha.opacity<100)cur2.filters.alpha.opacity+=10else if (window.highlighting)clearInterval(highlighting)}</script>This will go in the actual link code..style="filter:alpha(opacity=40);-moz-opacity:0.3" onMouseover="high(this)" onMouseout="low(this)" Edited December 18, 2006 by Batch User Link to comment Share on other sites More sharing options...
Batch User Posted December 18, 2006 Author Share Posted December 18, 2006 Can anyone please help? Link to comment Share on other sites More sharing options...
Nad Posted December 30, 2006 Share Posted December 30, 2006 Try dynamic drive or hotscripts, they have a large collection of dhtml and js scripts which can create this effect.I had a file which achieved this so i'll try to dig it out. If i find it, i'll be sure to post the code for you (js). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now