ztl.js

来自「JavaScript特效(新)这里有许多的JAVA特效.供学者参考」· JavaScript 代码 · 共 48 行

JS
48
字号
var hellotext="欢迎光临本站!建议使用IE5.0以上,800*600分辨率浏览。"
    var thetext=""
    var started=false
    var step=0
    var times=1

    function welcometext()
    {
      times--
      if (times==0)
      { 
        if (started==false)
        {
          started = true;
          window.status = hellotext;
          setTimeout("anim()",1); 
        }
        thetext = hellotext;
      }
    }

    function showstatustext(txt)
    {
      thetext = txt;
      setTimeout("welcometext()",4000)
      times++
    }

    function anim()
    {
      step++
      if (step==7) {step=1}
      if (step==1) 
{window.status='>==='+thetext+'===<'}
      if (step==2) 
{window.status='=>=='+thetext+'==<='}
      if (step==3) 
{window.status='>=>='+thetext+'=<=<'}
      if (step==4) 
{window.status='=>=>'+thetext+'<=<='}
      if (step==5) 
{window.status='==>='+thetext+'=<=='}
      if (step==6) 
{window.status='===>'+thetext+'<==='}
      setTimeout("anim()",200);
    }
  // -->
welcometext();

⌨️ 快捷键说明

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