24、状态栏字符跳动

24、状态栏字符跳动

要完成此效果把如下代码加入到<body>区域中

 

<script language="">

var yourwords = "  2259 ";

var speed = 700;

var control = 1;

function flash()

{

  if (control == 1)

    {

      window.status=yourwords;

      control=0;

    } 

  else

    {

      window.status="";

      control=1;

    }

  setTimeout("flash()",speed);

}

window.onload=flash

</script>

 

 

Write a comment

Comments: 0