Copy Code code as follows:
<script language= "JavaScript1.2" >
--control layer deletes the 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= "";//
}
--control layer deletes end of script-->
</script>
<script>
--Control layer move 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= ';
}
}
function Settagbpic (i) {
Picurl = Getbpic (i);
Getobj (' Tagbpic '). Style.background = "Transparent URL (\" + Picurl + "\") No-repeat scroll left ";
Cf.tagbgpic.value = i;
}
function Settagbcolor (i) {
color = Getbcolor (i);
Getobj (' preview '). Style.background = ' + color;
Cf.tagbgcolor.value = i;
}
function Getbpic (i) {
i = (i<1 | | i>8)? 1:i;
Return "Images/pic" + parseint (parseint (i) +27) + ". gif";
}
--Control layer Move end of script-->
Get focus;
function GetFocus (obj)
{
if (Obj.style.zindex!=index)
{
index = index + 2;
var idx = index;
Obj.style.zindex=idx;
Obj.nextsibling.style.zindex=idx-1;
}
}