网乐原科技

直播中

news center新闻中心
首页 > 资讯中心 > 软件技术

弹出式窗口代码产生器

发布时间:2008-12-20     阅读数: 次       来源:网乐原科技
要完成此效果把如下代码加入到区域中
<script language="JavaScript"> \n" + start + "BODY onLoad=\"javascript:popUp()\">"; } if(howto == 'link') { otherOutput = start + "!-- 步骤二: 用以下的链接打开一个新窗口 -->\n" + start + "A HREF=\"javascript:popUp()\">Open the Popup Window" + start + "/A>"; } if(howto == 'button') { otherOutput = start + "!-- 步骤二: 用以下的按钮代码打开一个新窗口-->\n" + start + "form>\n" + start + "input type=button value=\"Open the Popup Window\" onClick=\"javascript:popUp()\">\n" + start + "/form>"; } scriptOutput = start + '!-- 请照以下步骤进行:\r\n\r\n' + '\r\n\r\n' + '\r\n\r\n' + start + 'SCRIPT LANGUAGE="JavaScript">\r\n' + 'function pop' + 'Up() {\n'; scriptOutput += "props=window.open('" + page + "', 'poppage', '" + ((toolbars) ? "toolbars=1, " : "toolbars=0, ") + ((scrollprops) ? "scrollbars=1, " : "scrollbars=0, ") + ((locations) ? "location=1, " : "location=0, ") + ((statusbars) ? "statusbars=1, " : "statusbars=0, ") + ((menubars) ? "menubars=1, " : "menubars=0, ") + ((resizeable) ? "resizable=1" : "resizable=0") + ((width) ? ", width=" + width : "") + ((height) ? ", height=" + height : "") + ((center) ? ", left = " + ((screen.width - width) / 2) : "") + ((center) ? ", top = " + ((screen.height - height) / 2) : "") + "');\n}\n// End -->\n" + start + "/sc" + "ript>\n"; output = scriptOutput + "\n\n" + otherOutput + '\n\n' + start +'!--代码结束--'+'>'; document.mail.source.value = output; document.mail.source2.value = output; uncode(); } --> </script>
弹出式窗口代码产生器

在新窗口里要打开的文件
(文件的名字或URL地址...)
请选择要显示的窗口元素
toolbars status bar
scrollbars menu bar
location bar resizeable
输入窗口的大小(缺省是满屏打开)
Witdh (in pixels) Height (in pixels)
窗口打开方式
让窗口出现在屏幕正中间?
把下面代码Copy到程序中:



网乐原科技

客服热线:0771-5761507

QQ:53290011

QQ邮箱:53290011@qq.com

工作时间:周一到周五 9:00-18:00

地址:广西南宁市江南万达写字楼C16栋1309室

物联网开发

关注我们

微信小商店 腾讯QQ客服 微信客服