鼠标指向连接背景色就改变

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

<!--把下列代码放到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>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航