查看完整版本: 滚动的超级链接

风云际 2005-1-14 10:51

滚动的超级链接

将下列代码插入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>



风云际 2005-2-12 23:20

没有人来呀!可怜
页: [1]
查看完整版本: 滚动的超级链接
baidu
互联网 www.ymxd.net