滚动的超链接效果

 

点击这里看效果


在 <head> 与 </head> 之间加入:

<script language="JavaScript">
var a,b,go,word;
function greenlight(word){
a=" 一迪网络点";
word.style.color="yellow";
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="yellow";
}
</script>

在 <body> 与 </body> 之间加入:

<a href="../http://www.yidi.net" onMouseOver="greenlight(this)"; onMouseOut="stp(this)">
<span id="esh"> 一迪网络</span></a>