滾動的超級鏈接
發(fā)布時間:2008-08-01 閱讀數(shù): 次 來源:網(wǎng)樂原科技
將下列代碼插入html代碼的<head>和</head>:
<SCRIPT LANGUAGE="JavaScript">
<!--
var a,b,go,word;
function greenlight(word){
a=" 網(wǎng)頁之作站點";
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=" 網(wǎng)頁之作站點";
word.style.color="blue";
}
//-->
</SCRIPT>
將下列代碼插入html代碼的<body>和</body>之間:
<A HREF="http://netgo.silversand.net" onmouseover="greenlight(this)"; onmouseout="stp(this)"><span id="esh"> 網(wǎng)頁之作站點</span></A>