Copy codeThe Code is as follows:
<Script language = "JavaScript1.2">
// -- Control layer Delete 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 = "";//
}
// -- Delete End of script at the control layer -->
</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 bottom 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 (I) + 27) + ". gif ";
}
// -- Move the end of script at the control layer -->
// Obtain the 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;
}
}