Loading...

          java .net

          javascript 文字閃爍

          <html>
          <head>

          <script type="text/javascript">
          function blinklink()
          {
          if (!document.getElementById('message').style.color)
          {
          document.getElementById('message').style.color="red"
          }
          if (document.getElementById('message').style.color=="red")
          {
          document.getElementById('message').style.color="black"
          }
          else
          {
          document.getElementById('message').style.color="red"
          }
          timer=setTimeout("blinklink()",100)
          }

          function stoptimer()
          {
          clearTimeout(timer)
          }
          </script>
          </head>

          <body onload="blinklink()" onunload="stoptimer()">
          <div id="message" >Message</div>

          <div id="new_task">Message</a>

          <script language="JavaScript">
          <!-- Begin
          function initArray() {
          for (var i = 0; i < initArray.arguments.length; i++) {
          this[i] = initArray.arguments[i];
          }
          this.length = initArray.arguments.length;
          }
          var colors = new initArray(
          "red",
          "blue",
          "green",
          "purple",
          "black",
          "tan",
          "red");
          delay = .5; // seconds
          link = 0;
          vlink = 0;
          function linkDance() {
          link = (link+1)%colors.length;
          vlink = (vlink+1)%colors.length;
          new_task.style.color = colors[link];
          setTimeout("linkDance()",delay*1000);
          }
          function linkDance1() {
          link = (link+1)%colors.length;
          vlink = (vlink+1)%colors.length;
          new_task1.style.color = colors[link];
          setTimeout("linkDance1()",delay*1000);
          }

          linkDance();

          // End -->
          </script>
          </body>

          </html>

          posted on 2008-08-26 22:06 閱讀(626) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          公告

          希望有一天

          我能用鼠標雙擊我的錢包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導航

          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(102)

          隨筆檔案(398)

          文章分類

          文章檔案(10)

          有趣網絡

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 宁城县| 新建县| 南乐县| 小金县| 屏南县| 郁南县| 清徐县| 桃园市| 山西省| 贡觉县| 新邵县| 太仆寺旗| 满城县| 滨海县| 金塔县| 蓬安县| 黄浦区| 温宿县| 渑池县| 宁强县| 大洼县| 宜宾县| 平山县| 惠安县| 建水县| 东乌珠穆沁旗| 柏乡县| 长汀县| 垦利县| 阳朔县| 双峰县| 文昌市| 衡东县| 江口县| 沙洋县| 新泰市| 鲜城| 龙胜| 衡山县| 金山区| 昌都县|