<title> dynamically moving Layers </title>
<body bgcolor= "#ADBAC9" >
<div id= "Div1" class= "yellow" style= "visibility:visible; Background-color: #FFFF00; Position:absolute; top:60; left:200;
width:360; height:250; Filter:revealtrans (transition=12, ' duration=0.1) Blendtrans (duration=0.1) ">
<div id=title Onmousedown=divdown ("Div1") style= "Background-color: #30608F;p adding:2px; font-size:13px;text-
Indent:5;color: #FFFFFF; cursor:move "> Title </div>
Src= "Close.gif" width= "height=" >
</div>
<div>http://www.999jiujiu.com/</div>
<script language= "JavaScript" >
var obj= "None";
var PX
var PY
Document.onmousemove=divmove;
Document.onmouseup=divup;
function Divdown (tag) {
Obj=tag;
Px=parseint (document.all (OBJ). Style.left)-event.x;
Py=parseint (document.all (OBJ). style.top)-event.y;
}
function Divmove () {
if (obj!= "None") {
document.all (OBJ). Style.left=px+event.x;
document.all (OBJ). Style.top=py+event.y;
Event.returnvalue=false;
}
}
function Divup () {obj= "none";}
function Hide (divid) {
Divid.filters.revealTrans.apply ();
divid.style.visibility = "hidden";
Divid.filters.revealTrans.play ();
}
</script>
</body>
JS code Dynamic move Layer-drag floating layer and close