有什么问题请到评论中发表<br> <!-- http://www.mb5u.com/jscode --> <!-- bbs http://www.mb5u.com/bbs--> <!-- 完整的HTML代码如下 --> <html> <HEAD><title>弹出窗口生成器</title> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function generate(form){ page = document.inputForm.page.value; toolbars = document.inputForm.toolbars.checked; scrollprops = document.inputForm.scrollit.checked; locations = document.inputForm.locations.checked; statusbars = document.inputForm.statusbars.checked; menubars = document.inputForm.menubars.checked; resizeable = document.inputForm.resizeable.checked; width = document.inputForm.width.value; if (!width) width = screen.width; height = document.inputForm.height.value; if (!height) height = screen.height; howto = document.inputForm.howtoopen.options[document.inputForm.howtoopen.selectedIndex].value; left = document.inputForm.left.checked; start = "<"; if(howto == 'body') { otherOutput = start + "!-- 步骤2: 修改BODY区域为以下代码: -->\n\n" + start + "BODY onLoad=\"javascript:popUp('" + page + "')\">"; } if(howto == 'link') { otherOutput = start + "!-- 步骤2: 将下面的代码粘贴到BODY区域内: -->\n\n" + start + "A HREF=\"javascript:popUp('" + page + "')\">Open the Popup Window" + start + "/A>"; } if(howto == 'button') { otherOutput = start + "!-- 步骤2: 将下面的代码粘贴到BODY区域内: -->\n\n" + start + "form>\n" + start + "input type=button value=\"Open the Popup Window\" onClick=\"javascript:popUp('" + page + "')\">\n" + start + "/form>"; } scriptOutput = start + '!-- 使用下面代码需要两步: -->\r\n\r\n' + '<!-- 步骤1: 拷贝下面代码到 HEAD 区域内 -->\r\n\r\n' + '<HEAD>\r\n\r\n' + start + 'SCRIPT LANGUAGE="JavaScript">\r\n' + 'function pop' + 'Up(URL) {\nday = new Date();\nid = day.getTime();\n'; scriptOutput += "eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', '" + ((toolbars) ? "toolbar=1," : "toolbar=0,") + ((scrollprops) ? "scrollbars=1," : "scrollbars=0,") + ((locations) ? "location=1," : "location=0,") + ((statusbars) ? "statusbar=1," : "statusbar=0,") + ((menubars) ? "menubar=1," : "menubar=0,") + ((resizeable) ? "resizable=1" : "resizable=0") + ((width) ? ",width=" + width : "") + ((height) ? ",height=" + height : "") + ((left) ? ",left = " + ((screen.width - width) / 2) : "") + ((left) ? ",top = " + ((screen.height - height) / 2) : "") + "');\");\n}\n// End -->\n" + start + "/sc" + "ript>\n"; output = scriptOutput + "\n\n" + otherOutput + '\n\n' + start +'!-- Script Size: 0.73 KB --'+'>'; document.mail.source.value = output; document.mail.source2.value = output; uncode(); } // End --> </SCRIPT> <BODY BGCOLOR="BLACK" VLINK="BLUE" ALINK="BLUE"> <CENTER> <P ALIGN=CENTER> <TABLE WIDTH="500" CELLPADDING="0" CELLSPACING="0" BORDER="0"> <TR> <TD BGCOLOR="024D6D" VALIGN=TOP></TD> </TR> <TR> <TD WIDTH="100%" BGCOLOR="WHITE" VALIGN=TOP> <P> </TD> </TR> <TR> <TD WIDTH="100%" BGCOLOR="WHITE" VALIGN=TOP><CENTER> <TABLE WIDTH="677" CELLPADDING="0" CELLSPACING="0" BORDER="0"> <TR> <TD ROWSPAN="10" WIDTH="100%" BGCOLOR="WHITE" VALIGN=TOP> <P> <TABLE WIDTH="678" CELLPADDING="2" CELLSPACING="0" BORDER="0"> <TR> <TD WIDTH="1%" BGCOLOR="#E4E9E9" VALIGN=TOP> <P> </P> <P> </TD> <TD WIDTH="99%" VALIGN=TOP> <div align="left"> <table width="475" border="0" cellspacing</body></html>