追隨Java
          簡(jiǎn)單的事情重復(fù)做,就會(huì)產(chǎn)生累積效應(yīng)!
          posts - 260,  comments - 338,  trackbacks - 0
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
          >

          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
              
          <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
             
              <title>Focus效果的提交信息表單</title>
              
          <style type="text/css" media="all">
              form
          {
              margin
          : 0px auto;
              width
          : 450px;
              border
          : solid 1px #CCCCCC;
          }


          .bo
          {
              border-bottom
          : solid 1px #CCCCCC;
          }


          label
          {
              float
          : left;
              padding
          : 10px 0px 4px 30px;
          }


          input
          {
              padding
          : 1px;
          }


          input,textarea
          {
              border
          : 1px solid #CCCCCC;
              margin
          : 5px 0px;
          }


          textarea
          {
              padding
          : 2px;
          }


          .bt
          {
              width
          : 38px;
              height
          : 20px;
              font-size
          : 11px;
              border
          : solid 1px #CCCCCC;
              background
          : #FBFBFB;
              text-align
          : center;
          }


          .btcenter
          {
              text-align
          : center;
              clear
          : left;
              padding
          : 4px 0px 0px;
          }


          .sffocus 
          {
              background
          : #F0F9FB; /*----for IE----*/
              border
          : 1px solid #1D95C7;
          }


          textarea:focus, input:focus 
          {
              background
          : #F0F9FB; *----for firefox----*/
              border
          : 1px solid #1D95C7;
          }


          body 
          {
              font-family
          : Arial, Helvetica, sans-serif;
              font-size
          : 12px;
              color
          : #666666;
              margin-top
          : 20px;
          }


              
          </style>

              
          <script  type="text/javascript">
              
          <!--
          function suckerfish(type, tag, parentId) {
              
          if (window.attachEvent) {
                  window.attachEvent(
          "onload"function() {
                      
          var sfEls = (parentId==null)?document.getElementsByTagName(tag):document.getElementById(parentId).getElementsByTagName(tag);
                      type(sfEls);
                      }
          );
              }

          }

          sfFocus 
          = function type(sfEls) {
              
          for (var i=0; i<sfEls.length; i++{
                  sfEls[i].onfocus 
          = function() {this.className+=" sffocus";}
                  sfEls[i].onblur
          =function() this.className=this.className.replace(new RegExp(" sffocus\\b"), "");    }
              }

          }

          suckerfish(sfFocus, 
          "INPUT");
          suckerfish(sfFocus, 
          "TEXTAREA"); 

              
          //-->
              
          </script>

              
          <link rel="Shortcut Icon" type="image/x-icon" href="" />    
          </head>
          <body>
          <form action="#" method="post" name="myform" id="myform">
              
          <div class="bo">
                  
          <label for="name">姓名:</label>
                  
          <input type="text"size="20" name="name" id="name" maxlength="10" /></div>
              
          <div class="bo">
                  
          <label for="tel">郵件:</label>
                  
          <input type="text" size="20" name="tel" id="tel" maxlength="16" /></div>
              
          <div class="bo">
                  
          <label for="mo">標(biāo)題:</label>
                  
          <input type="text" size="30" name="mo" id="mo" maxlength="20" /></div>
              
          <div class="bo">
                  
          <label for="con">內(nèi)容:</label>
                  
          <textarea cols="40" rows="8" name="con" id="con"></textarea></div>
              
          <div class="btcenter">
                  
          <input type="submit" class="bt" value="Send" />
                  
          &nbsp;<input type="reset" class="bt" value="Reset" /></div>

          </form>
          </body>
          </html>
          posted on 2006-02-07 14:50 Harryson 閱讀(424) 評(píng)論(0)  編輯  收藏 所屬分類: Html

          <2006年2月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627281234
          567891011

          常用鏈接

          留言簿(10)

          隨筆分類(319)

          AJAX

          Coffee House

          CSS

          Java

          JavaScript

          Open Source

          ProjectManagement

          友情Blog

          最新隨筆

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 柘荣县| 武乡县| 美姑县| 蓬安县| 遂川县| 探索| 屏边| 东辽县| 九台市| 胶州市| 左权县| 新源县| 无为县| 射阳县| 前郭尔| 旬阳县| 长沙县| 广州市| 汉沽区| 临邑县| 乌鲁木齐市| 阿克| 新安县| 屏山县| 马龙县| 怀宁县| 平邑县| 蒙自县| 刚察县| 乐清市| 通江县| 隆回县| 庆元县| 高州市| 彭泽县| 顺平县| 昌宁县| 太康县| 松桃| 镇坪县| 屯昌县|