<script
language="JavaScript">
<!--
function
initArray() {
for (var
i = 0; i < initArray.arguments.length; i++) {
this[i]
= initArray.arguments[i];
}
this.length
= initArray.arguments.length;
}
// you may
fill this colors array with your colors.
// the
script will rotate the links through these colors
var colors
= new initArray(
"#0066FF",
"#FF6600",
"blue",
"red",
"purple",
"black",
"grey",
"navy");
pause_time
= .5; // in seconds
link = 0;
// starting color index (in colors array) for unvisited links
vlink =
4; // starting color index (in colors array) for visited links
function
linkDance() {
link =
(link+1)%colors.length;
vlink =
(vlink+1)%colors.length;
//alert("link
"+link+"\r\nvlink "+vlink+"\r\nvlinkColor "+document.vlinkColor);
document.linkColor
= colors[link];
document.vlinkColor
= colors[vlink];
setTimeout("linkDance();",pause_time*1000);
}
linkDance();
// -->
</script> |