复制代码 代码如下: <script language="JavaScript1.2"> //-- 控制层删除start of script --> function ssdel(){ if (event) { lObj = event.srcElement ;
while (lObj && lObj.tagName != "DIV") lObj = lObj.parentElement ; } var id=lObj.id document.getElementById(id).removeNode(true); //document.getElementById(id).outerHTML="";// }
//-- 控制层删除End of script --> </script> <script> //-- 控制层移动start of script --> var Obj='' var index=10000;//z-index; document.onmouseup=MUp document.onmousemove=MMove
function MDown(Object){ Obj=Object.id document.all(Obj).setCapture() pX=event.x-document.all(Obj).style.pixelLeft; pY=event.y-document.all(Obj).style.pixelTop; }
function MMove(){ if(Obj!=''){ document.all(Obj).style.left=event.x-pX; document.all(Obj).style.top=event.y-pY; } }
function MUp(){ if(Obj!=''){ document.all(Obj).releaseCapture(); Obj=''; } }