<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

          <html xmlns="<head>
              <title>無標題頁</title>
              <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
              <script type="text/javascript">
                  $(document).ready(function(){
                      $("#res").css("left",($(window).width()-$("#res").width())/2+"px");
                      $("#res").css("top",($(window).height()-$("#res").height())/2+"px");
                      $("#Text1").focus(function(){
                          $("#res").fadeIn();
                      })
                      $("#Button1").click(function(){
                          $("#Text1").val($("#result").html());
                          $("#res").fadeOut();
                      })
                      $("input[type=checkbox]").click(function(){
                          if($(this).attr("checked")==true)
                              $("#result").append($(this).val()+",");
                          else
                               $("#result").html($("#result").html().replace($(this).val(),""));
                      })
                  })
              </script>
          </head>
          <body style="margin:0 auto; padding:0; text-align:center;">
              <input id="Text1" type="text" style="height:20px;border:1px solid #ccc;" />
              <div id="res" style="width:300px;height:300px;border:1px solid #ccc;z-index:10; background:yellow; FILTER:alpha(opacity=30);opacity=0.3;position:absolute; display:none;">
                  <input id="Button1" type="button" value="確定" /><span id="result"></span><br />
                  <input id="Checkbox1" type="checkbox" value="youku"/>youku
                  <input id="Checkbox2" type="checkbox" value="tudou" />tudou
                  <input id="Checkbox3" type="checkbox" value="baidu" />baidu
                  <input id="Checkbox4" type="checkbox" value="google" />google
              </div>
          </body>
          </html>


          只有注冊用戶登錄后才能發表評論。


          網站導航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 湘西| 尚义县| 南召县| 教育| 顺义区| 铜梁县| 闻喜县| 嘉禾县| 威远县| 鄂尔多斯市| 武陟县| 开封县| 苍溪县| 壤塘县| 积石山| 那曲县| 方山县| 大城县| 平塘县| 江永县| 象山县| 报价| 陕西省| 汕尾市| 明溪县| 盖州市| 昆明市| 漳州市| 敦煌市| 宣恩县| 朝阳市| 德保县| 天气| 奉节县| 锦州市| 邹城市| 历史| 集安市| 无为县| 荣成市| 泌阳县|