鼠标指向连接背景色就改变 dn001 2009-06-21 08:19:17 <!--把下列代码放到head区域内--> <SCRIPT LANGUAGE="JavaScript"> <!-- var a,b,go,word; function greenlight(word){ a=" 网页教学网"; word.style.color="red"; linkSwitch(); } //more javascript from http://www.knowsky.com 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://www.knowsky.com" onmouseover="greenlight(this)"; onmouseout="stp(this)"><span id="esh"> 网页教学网</span></A>