您的位置:首页 > 其它

简单web标题闪烁功能

2013-05-29 08:31 169 查看
<html>

  <head>

    <title>闪烁的标题</title>

 <META http-equiv='Content-Type' content='text/html; charset=utf-8'>

  <script type="text/javascript">

     step = 0;

     var ytitle = document.title;

     function titleWink(){

         step++;

         if(step==3){step=1}

         if(step==1){document.title='【   '+ytitle+'   】'}

         if(step==2){document.title='【新消息】'+ytitle}

         setTimeout("titleWink()",200);

     }

     titleWink();

  </script>

  </head>

  <body>

  </body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: