<input type= "Text" size= "$" id= "receiver"/><input type= "button" value= "Bulk input" onclick= "Createinputdialog" ( This, ' 1 ', ') "Name=" Riskbehavior "/>
function Createinputdialog (obj,id,value) {var Div=document.getelementbyid ("Editbehaviordiv"); if (div!=null) document.body.removeChild (DIV); div = document.createelement ("div"); Div.id= "Editbehaviordiv"; div.style.position= ' absolute '; var op=getoffset (obj); div.style.top= "100px"; div.style.left= (document.body.clientwidth-374)/2.0 + "px"; Div.style.zIndex = 100; Div.style.backgroundcolor= ' #ecf1f6 '; Div.style.border= "1px solid #666"; Div.classname= "TD1"; Div.innerhtml= "<textarea name= ' behaviorvalue ' id= ' behaviorvalue ' cols= ' 8 ' rows= ' > ' +value+ ' </textarea& Gt;<br/><input type= ' button ' value= ' Modify ' onclick=\ ' Savebehaviorname (this.parentnode, ' +id+ ') \ "/>" + "& Lt;input type= ' button ' value= ' Cancel ' id= ' CancelButton ' onclick= ' Document.body.removeChild (this.parentnode); ' /> "; Document.body.appendChild (DIV); Document.all.behaviorValue.focus (); } function Savebehaviorname (obj,id) {var behaviorvalue = Document.all.behaviorValue.value; var idsarray = new Array (); Defines an array Idsarray = Behaviorvalue.split ("\ n"); Character segmentation var idsstring = ""; for (i = 0; i < idsarray.length; i++) {var temp = Idsarray[i]. Trim (); if (temp! = NULL && Temp! = "") {idsstring = idsstring + idsarray[i]. Trim () + ";" }} var str = ""; for (i = 0; i < idsarray.length; i++) {str = str + idsarray[i]. Trim (); } document.getElementById (' Receiver '). Value = idsstring; Document.body.removeChild (obj);} function GetOffset (e) {var t=e.offsettop; var l=e.offsetleft; while (e=e.offsetparent) {t+=e.offsettop; L+=e.offsetleft; } var rec = new Array (1); Rec[0] = t; REC[1] = l; Return REC}
Effect
HTML Floating window