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) 評(píng)論(0)  編輯  收藏


          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           

          公告

          希望有一天

          我能用鼠標(biāo)雙擊我的錢(qián)包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導(dǎo)航

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

          統(tǒng)計(jì)

          常用鏈接

          留言簿(6)

          隨筆分類(lèi)(102)

          隨筆檔案(398)

          文章分類(lèi)

          文章檔案(10)

          有趣網(wǎng)絡(luò)

          搜索

          積分與排名

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 金沙县| 铁岭市| 武平县| 北票市| 富平县| 侯马市| 湛江市| 电白县| 武胜县| 桐柏县| 澄迈县| 福州市| 建昌县| 康马县| 永川市| 宁武县| 彭山县| 西林县| 呼和浩特市| 武隆县| 盐山县| 安顺市| 沛县| 临湘市| 忻州市| 濮阳市| 河东区| 五大连池市| 雷山县| 天气| 海宁市| 漯河市| 辰溪县| 崇阳县| 雷山县| 石门县| 大冶市| 莱西市| 扎赉特旗| 宣城市| 沈阳市|