Português
<!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs--> <!-- 完整的HTML代码如下 --> < html> <HEAD><title>弹出窗口生成器</title> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function generate(form){ page = document.inputForm.page.value; barras de ferramentas = document.inputForm.toolbars.checked; scrollprops = document.inputForm.scrollit.checked; locais = document.inputForm.locations.checked; barras de status = document.inputForm.statusbars.checked; barras de menu = document.inputForm.menubars.checked; redimensionável = document.inputForm.resizeable.checked; largura = document.inputForm.width.value; if (!largura) largura = tela.largura; altura = document.inputForm.height.value; if (!altura) altura = tela.altura; como = document.inputForm.howtoopen.options[document.inputForm.howtoopen.selectedIndex].value; centro = document.inputForm.center.checked; iniciar = "<"; if(howto == 'body') { otherOutput = start + "!-- 步骤2: 修改BODY区域为以下代码: -->nn" + start + "BODY onLoad="javascript:popUp(' " + página + "')">"; } if(howto == 'link') { otherOutput = start + "!-- 步骤2: 将下面的代码粘贴到BODY区域内: -->nn" + start + "A HREF="javascript :popUp('" + page + "')">Abrir a janela pop-up" + start + "/A>"; } if(howto == 'button') { otherOutput = start + "!-- 步骤2: 将下面的代码粘贴到BODY区域内: -->nn" + start + "form>n" + start + "input type=button value="Abrir a janela pop-up" onClick="javascript:popUp('" + page + "')">n" + start + "/form>"; } scriptOutput = start + '!-- 使用下面代码需要两步: -->rnrn' + '<!-- 步骤1: 拷贝下面代码到 HEAD 区域内 -->r nrn' + '<HEAD>rnrn' + start + 'SCRIPT LANGUAGE="JavaScript">rn' + 'function pop' + 'Up(URL) {ndia = new Data();nid = day.getTime();n'; scriptOutput += "eval("página" + id + " = window.open(URL, '" + id + "', '" + ((barras de ferramentas) ? "toolbar=1," : "barra de ferramentas =0,") + ((scrollprops) ? "barras de rolagem=1," : "barras de rolagem=0,") + ((locais) ? "localização=1," : "localização=0,") + ((barras de status) ? "statusbar=1," : "statusbar=0,") + ((menubars) ? "menubar=1," : "menubar=0,") + ((redimensionável) ? "resizable=1" : "resizable= 0") + ((largura) ? ",largura=" + largura : "") + ((altura) ? ",altura=" + altura : "") + ((centro) ? ",esquerda = " + ( (largura da tela - largura) / 2) : "") + ((centro) ? ",top = " + ((altura da tela - altura) / 2) : "") + "');"); n}n// Fim -->n" + início + "/sc" + "ript>n"; saída = scriptOutput + "nn" + otherOutput + 'nn' + start +'!-- Tamanho do script: 0,73 KB --'+'>'; document.mail.source.value = saída; document.mail.source2.value = saída; descodificar(); } // Fim --> </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="center"> <table width="475" border="0" cellpacing="0" cellpadding="4"> <tr> <td width="467"> <font size="2"><strong>弹出窗口生成器</strong></font><br> </td> </tr> <tr> <td align=center> <table width="100% "cellpadding=0 cellpacing=0 border=0> <tr> <td width="100%" align=center> <form name=inputForm> <table width=466 cellpadding=2 cellpacing=0 border=0> <tr> <td width="462"> <table cellpadding=8 cellpacing=0 border=0 bgcolor="#E9E9E9" width="458"> <tr> <td colspan=2 bgcolor="#FFFFFF"><font face= "宋体" size="2">这个生成器将帮助我们自动生成一个弹出窗口的代码,请你把下面表单的内容填写完整之后,按“生成代码”按钮就会出现代码了!</font> </td> </tr> <tr> <td width="169" bgcolor="#F9F9F9"><font face="宋体" size="2">文件名称或网址</font></td> <td width="257" bgcolor="#F9F9F9"> <font face="宋体" size="2"> <input type=text name=page size=20> <br> (nome do arquivo é http://. ...)</font></td> </tr> <tr> <td width="169"><font face="宋体" size="2">工具栏:</font></td > <td width="257"> <font face="Arial, Helvetica, sans-serif" size="2"> <input type=checkbox name=toolbars> Sim</font></td> </tr> <tr> <td width="169" bgcolor="#F9F9F9"><font face="宋体" size="2">滚动条:</font></td> <td width="257" bgcolor= "#F9F9F9"> <font face="Arial, Helvetica, sans-serif" size="2"> <input type=checkbox name=scrollit> Sim</font></td> </tr> <tr> < td width="169"><font face="宋体" size="2">地址栏:</font></td> <td width="257"> <font face="Arial, Helvetica, sans- serif" size="2"> <input type=checkbox name=locations> Sim</font></td> </tr> <tr> <td width="169" bgcolor="#F9F9F9"><face da fonte ="宋体" size="2">状态栏:</font></td> <td width="257" bgcolor="#F9F9F9"> <font face="Arial, Helvetica, sans-serif" size= "2"> <input type=checkbox name=statusbars> Sim</font></td> </tr> <tr> <td width="169"><font face="宋体" size="2">菜单:</font></td> <td width="257"> <font face="Arial, Helvetica, sans-serif" size="2"> <input type=checkbox name=menubars> Sim</font </td> </tr> <tr bgcolor="#F9F9F9"> <td width="169"><font face="宋体" size="2">可否调整大小:</font></td > <td width="257"> <font face="Arial, Helvetica, sans-serif" size="2"> <input type=checkbox name=resizeable> Sim</font></td> </tr> <tr> <td width="169"><font face="宋体" size="2">宽度:</font></td> <td width="257"> <font face="Arial, Helvetica , sem serifa" size="2"> <input type=text name=width size=4> (em pixels)</font></td> </tr> <tr bgcolor="#F9F9F9"> <td width="169"><font face="宋体" size="2">高度:</font></td> <td width="257"> <font face="Arial, Helvetica, sans-serif" size="2"> <input type=text name=height size=4> (em pixels)</font></td> </tr> <tr> <td width="169"><font face="宋体" size="2">如何打开窗口:</font></td> <td width="257"> <font face="Arial, Helvetica, sans-serif" size="2"> <selecione o nome =howtoopen> <option value="button">por um botão <option value="link">por um link <option value="body">automaticamente </select> </font></td> </tr> <tr bgcolor="#F9F9F9"> <td width="169"><font face="宋体" size="2">在窗口中央打开?</font></td> <td width="257" > <font face="Arial, Helvetica, sans-serif" size="2"> <input type=checkbox name=center> Sim</font></td> </tr> <tr> <td colspan=2 > <center> <input type=button value="生成代码" onClick="javascript:generate();" name="button"> <input type="reset" value="清除" name="reset"> </center></td> </tr> </table></td> </tr> </ table> </form> <p> <center> <form name="mail" method="POST"> <textarea name="source" rows=12 cols=50> 建站学院http://www.downcodes.com ,提供该特效,希望大家喜欢! <br><br><br> <p><font color=red>//作者:闪电儿,网站:http://www.downcodes.com</font></p>