Flashing link font color while onmouseover
I have a function which could change hypelink's font color while onmouseover and stops when mouseout.
If i want to apply it to my while page's link or other page's link,
Do I have to type onmouseover and onmouseout before each link?
DO I have to place the function to each link?
Is there a effecient way to do that?
Need help buddy!!!
My code is here:
var lcolor = new Array(24);
lcolor[0]="#FF5050"
lcolor[1]="#FF6600"
lcolor[2]="#FF9933"
lcolor[3]="#FFCC00"
lcolor[4]="#FFFF00"
lcolor[5]="#CCFF33"
lcolor[6]="#99FF33"
lcolor[7]="#66FF33"
lcolor[8]="#33CC33"
lcolor[9]="#00FF00"
lcolor[10]="#00FF99"
lcolor[11]="#00FFCC"
lcolor[12]="#33CCCC"
lcolor[13]="#00CCFF"
lcolor[14]="#0099FF"
lcolor[15]="#0066FF"
lcolor[16]="#3366FF"
lcolor[17]="#6666FF"
lcolor[18]="#9966FF"
lcolor[19]="#CC33FF"
lcolor[20]="#FF00FF"
lcolor[21]="#FF33CC"
lcolor[22]="#FF3399"
lcolor[23]="#FF0066"
var rate = 0;
var stoper = 1;
function flashing()
{
if (stoper=0)
{
rate++;
if(rate >= 24)
{
rate = 0;
flashing();
}
else
{
document.alinkColor =lcolor[rate];
document.vlinkColor =lcolor[rate];
document.linkColor =lcolor[rate];
setTimeout("flashing()", 350);
}
}
else
{
return;
}
}
function stop
{
stoper=1;
document.alinkColor="#FFFFFF";
document.vlinkColor ="#FFFFFF";
document.linkColor ="#FFFFFF";
}
Develop software is fun when you think you going to set infront of your computer hour after hour. WAHOOOOOO! What else you want!!
Bookmarks