document.writeln(""); //向模拟提示框传递参数,并激活对话框 function msg(str1,str2,str3,str4,str5){ document.getElementById("div_01").style.width = str3; document.getElementById("div_01").style.left = (document.body.clientWidth-str3)/2; document.getElementById("div_01").style.top = (document.body.clientHeight-120)/2; document.getElementById("div_01").style.display = ''; document.getElementById("msgbox").innerHTML = str1; if(str2 == 1){ document.getElementById("con_01").innerHTML = ""; } if(str2 == 2){ document.getElementById("con_01").innerHTML = " "; } document.getElementById("mdiv").style.display = ""; document.getElementById("mdiv").style.zIndex = 100; document.getElementById("div_01").style.zIndex = 200; document.getElementById("but_01").focus(); } //加入对话框移动代码 var md=false,mobj,ox,oy document.onmousedown=function(){ if(event.target.getAttribute('canmove')){ md = true; mobj = document.getElementById(event.target.getAttribute('forid')); ox = mobj.offsetLeft - event.x; oy = mobj.offsetTop - event.y; }else{ if(typeof(event.srcElement.canmove)=="undefined")return; if(event.srcElement.canmove) { md = true; mobj = document.getElementById(event.srcElement.forid); ox = mobj.offsetLeft - event.x; oy = mobj.offsetTop - event.y; } } } document.onmouseup=function(){md=false;} document.onmousemove=function() { if(md) { mobj.style.left = event.x + ox; mobj.style.top = event.y + oy; } if(document.activeElement.tagName!='INPUT')return false; } document.writeln("
<\/div>"); document.writeln("
"); document.writeln(""); document.writeln(" "); document.writeln("
\"\"<\/td>"); document.writeln(" VBScript提示<\/td>"); document.writeln(" \"关闭\"<\/td>"); document.writeln(" \"\"<\/td>"); document.writeln(" <\/tr>"); document.writeln("<\/table>"); document.writeln(""); document.writeln(" "); document.writeln(" "); document.writeln("
<\/td>"); document.writeln("
<\/div>
<\/span>

<\/td>"); document.writeln("
<\/td>"); document.writeln(" <\/tr>"); document.writeln("
\"\"<\/td>"); document.writeln(" <\/td>"); document.writeln(" <\/td>"); document.writeln(" <\/tr>"); document.writeln("<\/table>"); document.writeln("<\/div>")