一种文字颜色渐变效果的超级连接特效- JavaScript/Js
2008-05-19 10:19:33 作者: 来源: 互联网 浏览次数: 1 文字大小:【 大】【 中】【 小】
简介:<span onmouseover="catge()" onmouseout="stopCatge()">这是一段代码测试文字</span><script type="text/javascript">function catge(){var n = Math.floor(256*256*256*Math.random());color=n.toString(16); ...
<span onmouseover="catge()" onmouseout="stopCatge()">这是一段代码测试文字</span> <script type="text/javascript"> function catge(){ var n = Math.floor(256*256*256*Math.random()); color=n.toString(16); document.fgColor=eval("'#'+color"); catgeTimer=setTimeout("catge()",500); } function stopCatge(){ clearTimeout(catgeTimer); } </script>
|