<!DOCTYPE html><Html><Head><MetaCharSet= "Utf-8"><MetaName= "Author"Content= "http://www.51texiao.cn/"/><Title> can drag the pop-up window-ant tribe</Title><StyleType= "Text/css">#popDiv{Position:Absolute;Visibility:Hidden;Overflow:Hidden;Border:2PX Solid #AEBBCA;Background-color:#EEF1F8;Cursor:Move;Padding:1px;}#popTitle{Background:#9DACBF;Height:20px;Line-height:20px;Padding:1px;}#popForm{Padding:2px;}. title_left{Font-weight:Bold;Padding-left:5px;Float:Left;}. title_right{Float:Right;}#popTitle. Title_right A{Color:#000;Text-decoration:None;}#popTitle. Title_right a:hover{Text-decoration:Underline;Color:#FF0000;}</Style><Script>functionShowPopup ()//Pop-up layer{VarObjdiv=document.getElementById ("Popdiv"); ObjDiv.style.top="50px";//Set the distance from the top edge of the pop-up layerObjDiv.style.left="200px";//Set the distance from the left edge of the popup layerObjDiv.style.width="300px";//Set the width of the pop-up layerObjDiv.style.height="200px";//Set the height of the pop-up layerObjDiv.style.visibility="Visible"; }functionHidepopup ()//Close Layer{VarObjdiv=document.getElementById ("Popdiv"); Objdiv.style.visibility= "hidden"; } </script>
JavaScript pops up a window code instance that you can drag