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 閱讀(629) 評論(0)  編輯  收藏


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


          網站導航:
           

          公告

          希望有一天

          我能用鼠標雙擊我的錢包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導航

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

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(102)

          隨筆檔案(398)

          文章分類

          文章檔案(10)

          有趣網絡

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 涡阳县| 确山县| 临武县| 眉山市| 来安县| 迁西县| 哈密市| 西青区| 建始县| 札达县| 出国| 图片| 米泉市| 布尔津县| 晋江市| 恩施市| 邵武市| 清水河县| 灯塔市| 体育| 扶绥县| 十堰市| 绥中县| 韩城市| 广德县| 左权县| 丹巴县| 清丰县| 望都县| 仪陇县| 泗洪县| 靖西县| 海阳市| 富蕴县| 黑山县| 泌阳县| 项城市| 陆丰市| 姚安县| 略阳县| 策勒县|