<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>标题页</title>
<S
CRIPT LANGUAGE="JavaS
cript">
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( //定义颜色数组
"#ffffcc",
"yellow",
"green",
"purple",
"black",
"tan",
"gray");
delay = 0.6; //延迟时间 单位为秒
l
ink = 0;
vl
ink = 2;
function l
inkDance() {
l
ink = (l
ink+1)%colors.length; //设置链接的默认颜色
vl
ink = (vl
ink+1)%colors.length; //设置查看过的链接的默认颜色
d
ocument.l
inkColor = colors[l
ink]; //改变链接的颜色
d
ocument.vl
inkColor = colors[vl
ink]; //改变查看过的链接颜色
setTimeout("l
inkDance()",delay*1000); //设置定时器,实现颜色的定时变化
}
l
inkDance();
</s
cript>
</head>
<body>
<a href=https://download.csdn.net/download/xieshigang/"#" >这是一个跳舞的链接</a>
</body>