<p id="l55vn"></p>
<nobr id="l55vn"></nobr>
<menuitem id="l55vn"><delect id="l55vn"><i id="l55vn"></i></delect></menuitem>

<p id="l55vn"></p>
      <nobr id="l55vn"><thead id="l55vn"><i id="l55vn"></i></thead></nobr>
      <b id="l55vn"></b>

            <menuitem id="l55vn"></menuitem>
              <nobr id="l55vn"><ruby id="l55vn"><i id="l55vn"></i></ruby></nobr>

              首頁 > 設計 > 網頁設計 > 正文

              網頁常用特效整理:中級篇

              2018-10-16 20:51:30
              字體:
              來源:轉載
              供稿:網友

              筆者日積月累了許多精彩、實用的Web特效的制作,這些特效幾乎都是比較常用的網頁特效?,F在我就把這些經過整理和修改過的特效分三個級別分別介紹給大家。

                中級篇

                1.節日倒計時

               ?。糞cript Language="JavaScript">
                var timedate= new Date("October 1,2002");
                var times="國慶節";
                var now = new Date();
                var date = timedate.getTime() - now.getTime();
                var time = Math.floor(date / (1000 * 60 * 60 * 24));
                if (time >= 0)
                document.write("現在離"+times+"還有: "+time +"天")</Script>

                2.單擊按鈕打印出當前頁

               ?。糞cript  Language="JavaScript">
               ?。?-- Begin
                if (window.print) {
                document.write('<form>'
                + '<input type=button name=print value="打印本頁" '
                + '></form>');
                }
                // End -->
               ?。?Script>

                3.單擊按鈕‘另存為’當前頁

               ?。糹nput type="button" name="Button" value="保存本頁"
               ?。?br/> ?。紀bject  id="button"
                width=0
                height=0
                classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
               ?。糴mbed width="0"   height="0"></embed>
               ?。?object>

                4.顯示系統當前日期

               ?。約cript language=JavaScript>
                today=new Date();
                function date(){
                this.length=date.arguments.length
                for(var i=0;i<this.length;i++)
                this[i+1]=date.arguments[i]  }
                var d=new date("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
                document.write(
                "<font color=##000000 style='font-size:9pt;font-family: 宋體'> ",
                today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日",
                d[today.getDay()+1],"</font>" );
               ?。?script>

              本文作者:
              發表評論 共有條評論
              用戶名: 密碼:
              驗證碼: 匿名發表
              a级情欲片在线观看免费
              <p id="l55vn"></p>
              <nobr id="l55vn"></nobr>
              <menuitem id="l55vn"><delect id="l55vn"><i id="l55vn"></i></delect></menuitem>

              <p id="l55vn"></p>
                  <nobr id="l55vn"><thead id="l55vn"><i id="l55vn"></i></thead></nobr>
                  <b id="l55vn"></b>

                        <menuitem id="l55vn"></menuitem>
                          <nobr id="l55vn"><ruby id="l55vn"><i id="l55vn"></i></ruby></nobr>