2024中文国产成人精品久久_少妇 激情毛片免费_中文字幕无码一级片在线观看_国产高清无码一v二v_99精品只有久久精品_18禁国产精品无遮挡污污污_丁香婷婷婷综合狠狠激情五月天_性欧美黑人巨大videoshd_日本色黄一区二区三区免费_黄视频网站在线观看不卡

歡迎來到合肥浪訊網(wǎng)絡科技有限公司官網(wǎng)
  咨詢服務熱線:400-099-8848

網(wǎng)頁常用特效收拾:中級篇

發(fā)布時間:2019-07-12 文章來源:本站  瀏覽次數(shù):2919

筆者銖積寸累了許多精彩、實用的Web特效的制作,這些特效幾乎都是比較常用的網(wǎng)頁特效。現(xiàn)在我就把這些經(jīng)過收拾和修改過的特效分三個級別別離介紹給我們。

  中級篇

  1.節(jié)日倒計時

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

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

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

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

 。糹nput type="button" name="Button" value="保存本頁"
  onClick="document.all.button.ExecWB(4,1)">
 。紀bject id="button"
  width=0
  height=0 
  classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
  <embed width="0" height="0"></embed> 
 。/object>

  4.顯示體系當時日期

  <script 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>

上一條:網(wǎng)頁規(guī)劃標準...

下一條:網(wǎng)頁常用特效整理:高檔篇...