乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      最近收集的有用的Javscript小技巧

       仰望//45度微笑 2012-04-05

      <input style="ime-mode:disabled"> 關(guān)閉輸入法

        光標(biāo)是停在文本框文字的最后
      <script language="javascript">
      function cc()
      {
      var e = event.srcElement;
      var r =e.createTextRange();
      r.moveStart('character',e.value.length);
      r.collapse(true);
      r.select();
      }
      </script>
      <input type=text name=text1 value="123" onfocus="cc()">

        讓彈出窗口總是在最上面:
      <body onblur="this.focus();">

        怎樣去掉圖片鏈接點(diǎn)擊后,圖片周圍的虛線?
      <a href="#" onFocus="this.blur()"><img src="logo.jpg" border=0></a>

        在打開的子窗口刷新父窗口的代碼里如何寫?
      window.opener.location.reload()

        如何設(shè)定打開頁面的大小
      <body onload="top.resizeTo(300,200);">
      打開頁面的位置<body onload="top.moveBy(300,200);">

        在頁面中如何加入不是滿鋪的背景圖片,拉動頁面時背景圖不動
      <STYLE>
      body
      {background-image:url(logo.gif); background-repeat:no-repeat;

      background-position:center;background-attachment: fixed}
      </STYLE>

        檢查一段字符串是否全由數(shù)字組成
      <script language="Javascript"><!--
      function checkNum(str){return str.match(//D/)==null}
      alert(checkNum("1232142141"))
      alert(checkNum("123214214a1"))
      // --></script>

        獲得一個窗口的大小
      document.body.clientWidth; document.body.clientHeight

        怎么判斷是否是字符
      if (/[^/x00-/xff]/g.test(s)) alert("含有漢字");
      else alert("全是字符"); www.mscto.com

        TEXTAREA自適應(yīng)文字行數(shù)的多少
      <textarea rows=1 name=s1 cols=27 onpropertychange="this.style.posHeight=this.scrollHeight">
      </textarea>

        日期減去天數(shù)等于第二個日期
      <script language=Javascript>
      function cc(dd,dadd)
      {
      //可以加上錯誤處理
      var a = new Date(dd)
      a = a.valueOf()
      a = a - dadd * 24 * 60 * 60 * 1000
      a = new Date(a)
      alert(a.getFullYear() + "年" + (a.getMonth() + 1) + "月" + a.getDate() + "日")
      }
      cc("12/23/2002",2)
      </script>

        無關(guān)閉按鈕IE
      window.open("aa.htm", "meizz", "fullscreen=7");

        窗口最大化
      <body onload="window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)">

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多