滚动式超级链接.txt

来自「这个是 Java Script特效(新),」· 文本 代码 · 共 31 行

TXT
31
字号
滚动式超级链接
脚本说明:
第一步:把如下代码加入<head>区域中
<SCRIPT LANGUAGE="JavaScript">
  <!--
   var a,b,go,word;
   function greenlight(word){
    a="JAVASCRIPT大本营";
    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="JAVASCRIPT大本营";
    word.style.color="blue";
   }
  //-->
  </SCRIPT>



第二步:把如下代码加入<body>区域中
  <A HREF="http://javascript2000.126.com" onmouseover="greenlight(this)"; onmouseout="stp(this)"><span id="esh"> JAVASCRIPT大本营</span></A> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?