<noscript id="eassg"><table id="eassg"></table></noscript>
  • <strike id="eassg"><s id="eassg"></s></strike>
  • <ul id="eassg"></ul>
    注冊|登錄

    聯系電話:024-31891684  13390130939
    沈陽軟件公司--沈陽軟件定制

    沈陽軟件開發_沈陽軟件公司_沈陽軟件定制/軟件/最新技術

    Latest technology最新技術

    CSS+DIV+JS實現拖動層效果

    瀏覽量:4472

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <meta http-equiv="content-type" content="text/html; charset=gb2312">
      <meta http-equiv="content-script-type" content="text/javascript">
      <meta http-equiv="content-style-type" content="text/css">
      <title>可拖動的div</title>
      <style rel="stylesheet" type="text/css" media="all" />
      <!--

      #diamondCompareList {
        width:400px;
        position:absolute;
        left:600px;
        top:100px;
        background:#EFEFFF;
        text-align:left;
      
      }
      #ChatHead {
        text-align:right;
        padding:3px;
        border:1px solid #003399;
        background:#DCDCFF;
        font-size:11px;
        color:#3366FF;
        cursor:move;
      }
      -->
      </style>
      <script language="javascript" type="text/javascript">
      <!--
      function hd(d){return document.getElementById(d);}
      function gs(d){var t=hd(d);if (t){return t.style;}else{return null;}}
      function gs2(d,a){
        if (d.currentStyle){
          var curVal=d.currentStyle[a]
        }else{
          var curVal=document.defaultView.getComputedStyle(d, null)[a]
        }
        return curVal;
      }
      function DiamondHidden(){gs("diamondCompareList").display = "none";}
      function DiamondShow(){gs("diamondCompareList").display = "";}
      function DiamondClose(){gs("main").display = "none";}
      function ChatSend(obj){
        var o = obj.ChatValue;
        if (o.value.length>0){
          hd("ChatContent").innerHTML += "<strong>Akon說:</strong>"+o.value+"<br/>";
          o.value='';
        }
      }
      if  (document.getElementById){
        (
          function(){
            if (window.opera){ document.write("<input type='hidden' id='Q' value=' '>"); }
         
            var n = 500;
            var dragok = false;
            var y,x,d,dy,dx;
           
            function move(e)
            {
              if (!e) e = window.event;
              if (dragok){
                d.style.left = dx + e.clientX - x + "px";
                d.style.top  = dy + e.clientY - y + "px";
                return false;
              }
            }
           
            function down(e){
              if (!e) e = window.event;
              var temp = (typeof e.target != "undefined")?e.target:e.srcElement;
              if (temp.tagName != "HTML"|"BODY"  &&  temp.className != "dragclass"){
                temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
              }
              if('TR'==temp.tagName){
                temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
                temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
                temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
              }
           
              if (temp.className == "dragclass"){
                if (window.opera){ document.getElementById("Q").focus(); }
                dragok = true;
                temp.style.zIndex = n++;
                d = temp;
                dx = parseInt(gs2(temp,"left"))|0;
                dy = parseInt(gs2(temp,"top"))|0;
                x = e.clientX;
                y = e.clientY;
                document.onmousemove = move;
                return false;
              }
            }
           
            function up(){
              dragok = false;
              document.onmousemove = null;
            }
           
            document.onmousedown = down;
            document.onmouseup = up;
         
          }
        )();
      }
      -->
      </script>
    </head>
    <body>
    <div style="left: 0px; top: 512px; cursor: move;"  id="diamondCompareList" class="dragclass" style="left:600px;top:300px;" class="span-5 diamond_compare_list">
        <div class="title border_1"   id="ChatHead">
            <span>鉆石對比</span>
            <input class="close" value="關閉" type="button">
        </div>
        <div class="text d_compare_list" id="ChatContent">
            <ol id='oldb'></ol>
            <input id="clearCompare" class="compare" value="清空對比" type="button">
            <input id="gotoCompare" class="compare" value="查看對比" type="button">
        </div>
    </div>

    </body>
    </html>

    沈陽團購網|營口網站制作|沈陽軟件公司|軟件定制|網站建設|加盟易勢|提交問題

    久久伊人精品青青草原日本| 日韩成人在线网站| 久久精品亚洲一区二区三区浴池 | 99re热这里只有精品视频中文字幕| 亚州日韩精品专区久久久| 久久久国产精品无码一区二区三区| 99久久国产综合精品swag| 久久精品国产亚洲麻豆| 国产三级精品三级在线观看专1| 久久九九久精品国产日韩经典| 国产精品videossexohd| 3atv国产精品视频| 亚洲精品国产第1页| 无码国产精品一区二区免费模式 | 久热香蕉精品视频在线播放| 99热婷婷国产精品综合| 国产亚洲精品不卡在线| 久久久久国产日韩精品网站| 国产成人精品久久亚洲| 一级A毛片免费观看久久精品| 日韩美一区二区三区| 亚洲人午夜射精精品日韩| 午夜精品久久久久蜜桃| 国产成人精品免费视频大全五级 | 91精品国产自产在线老师啪| 久久精品亚洲视频| 国产精品igao视频| 国产成人99久久亚洲综合精品| 日韩精品无码一区二区三区四区| 四色在线精品免费观看| 亚洲精品无码少妇30P| 亚洲精品在线电影| 亚洲国产精品自在在线观看 | 99re热这里只有精品视频| 国产精品看高国产精品不卡| 91精品国产9l久久久久| 国产A∨免费精品视频| 第四色播日韩第一页| 中文无码日韩欧免费视频| 国产精品va无码免费麻豆| 精品国产一区二区三区av片|