<script
language="javascript"
type="text/javascript">
function
initArray()
{
for
(var
i =
0;
i <
initArray.arguments.length;
i++)
{
this[i]
=
initArray.arguments[i];
}
this.length
=
initArray.arguments.length;
}
var
colors =
new
initArray(
"red",
"blue",
"green",
"purple",
"black",
"tan",
"red");
delay
=
.5;
link
=
0;
vlink
=
2;
function
linkDance()
{
link
=
(link+1)%colors.length;
vlink
=
(vlink+1)%colors.length;
document.linkColor
=
colors[link];
document.vlinkColor
=
colors[vlink];
setTimeout("linkDance()",delay*1000);
}
linkDance();
</script>
<center>
<a
href="http://yaldex.com/JSFactory_Pro.htm">Example
link - notice the link color?</a>
</center>