esntric
02-12-2003, 06:43 PM
<script language="JavaScript1.2">
function flash(){
//determines if any links are blue
if (document.all.flashme.style.color =="blue"){
//changes any blue links to gold
document.all.flashme.style.color ="gold"
}
else{
//changes any links that arent blue to blue
document.all.flashme.style.color ="blue" }
}
//sets speed of flash in 1/1000th of a second
setInterval("flash()", 1000)
</script>
<a id="flashme" href="#null"><b>CLICK</b></a>
Can this code be changed so that it fades colors? I want the link to fade from black to white. Which means that when the page ( site ) is loaded ( opened ) the links are all black. When someone hovers over a link ( puts the little arrow ontop of a link ) the link changes colors. The link should change from 000000 to 111111 to 222222 to 333333 to 444444 to 555555 to 666666 to 777777 to 888888 to 999999 to AAAAAA to BBBBBB to CCCCCC to DDDDDD to EEEEEE to FFFFFF.
If this code cannot be modified ( changed ) can you give me a code that will fade?
If you cannot give me a code that will fade can you give me a link or two to JS tutorials ( instructions )?
Perhaps my question is now simple enough for you to understand and reply to.
function flash(){
//determines if any links are blue
if (document.all.flashme.style.color =="blue"){
//changes any blue links to gold
document.all.flashme.style.color ="gold"
}
else{
//changes any links that arent blue to blue
document.all.flashme.style.color ="blue" }
}
//sets speed of flash in 1/1000th of a second
setInterval("flash()", 1000)
</script>
<a id="flashme" href="#null"><b>CLICK</b></a>
Can this code be changed so that it fades colors? I want the link to fade from black to white. Which means that when the page ( site ) is loaded ( opened ) the links are all black. When someone hovers over a link ( puts the little arrow ontop of a link ) the link changes colors. The link should change from 000000 to 111111 to 222222 to 333333 to 444444 to 555555 to 666666 to 777777 to 888888 to 999999 to AAAAAA to BBBBBB to CCCCCC to DDDDDD to EEEEEE to FFFFFF.
If this code cannot be modified ( changed ) can you give me a code that will fade?
If you cannot give me a code that will fade can you give me a link or two to JS tutorials ( instructions )?
Perhaps my question is now simple enough for you to understand and reply to.