jshl_wiz
05-23-2005, 03:01 AM
ok i can't believe i forgot how to do this :mad:
this JS code is supposed to make a link change its background color when you put the mouse over it, the background has to become clearer and clearer as 600 miliseconds pass.... hope you understood MY INGLES NO GOOD :D .
I keep on getting the error "object required" would anyone please help??
Here's the code:
<html>
<head><title>Sistema de Navegación 1</title>
<script language="JavaScript">
<!--
function fadeColor(which){
var thecolors = new Array("#C1DAFF","#77ADFF","#3787FF","#004EC1","#0062F4","#0047B3");
thenumber = -1;
if(thenumber<5){
thenumber += 1;
document.anchors(which).style.backgroundColor = thecolors[thenumber];
}
else{}
setTimeout('fadeColor('+which+')', 100);
}
//-->
</script>
</head>
<body>
<a href="sistema_navegacion1.html" style="font-family:arial;text-decoration: none;color:black;" name="ellink" onmouseover="fadeColor('ellink')">Link</a>
</body>
</html>
this JS code is supposed to make a link change its background color when you put the mouse over it, the background has to become clearer and clearer as 600 miliseconds pass.... hope you understood MY INGLES NO GOOD :D .
I keep on getting the error "object required" would anyone please help??
Here's the code:
<html>
<head><title>Sistema de Navegación 1</title>
<script language="JavaScript">
<!--
function fadeColor(which){
var thecolors = new Array("#C1DAFF","#77ADFF","#3787FF","#004EC1","#0062F4","#0047B3");
thenumber = -1;
if(thenumber<5){
thenumber += 1;
document.anchors(which).style.backgroundColor = thecolors[thenumber];
}
else{}
setTimeout('fadeColor('+which+')', 100);
}
//-->
</script>
</head>
<body>
<a href="sistema_navegacion1.html" style="font-family:arial;text-decoration: none;color:black;" name="ellink" onmouseover="fadeColor('ellink')">Link</a>
</body>
</html>