滚动的超级链接

发布时间:2008-08-01 00:00:00 阅读次数:

将下列代码插入html代码的<head>和</head>:

<SCRIPT LANGUAGE="JavaScript">
<!--
var a,b,go,word;
function greenlight(word){
a=" 网页之作站点";
word.style.color="red";
linkSwitch();
}
function linkSwitch(){
clearTimeout(go);
b=a;
a=a.substring(1,100)+a.charAt(0);
esh.innerText=a;
go=setTimeout("linkSwitch()",100);
}
function stp(word){
clearTimeout(go);
esh.innerText=" 网页之作站点";
word.style.color="blue";
}
//-->
</SCRIPT>




将下列代码插入html代码的<body>和</body>之间:

<A HREF="http://netgo.silversand.net" onmouseover="greenlight(this)"; onmouseout="stp(this)"><span id="esh"> 网页之作站点</span></A>