Caminho de Navegação Outros / Scripts / Criador de Codigo para Janela

Outros

 

Nenhuma avalição
Indique ao Ueba Indique ao BlogBlogs Indique ao Delicious Indique ao Technorati Indique ao Google Bookmarks Indique ao Newsgator
TAGS

Nenhuma tag foi definida ainda!

Defina as tags para esta página preenchendo o campo abaixo.

  • Máximo de 100 tags
  • Cada tag deve ter até 20 caracteres.
  • Separar as tags com virgula. Ex.: php, sql, html, xml, fireworks
COMENTAR

INDICAR
Nome do amigo: E-mail do amigo: Comentário:
REPORTAR ERRO Descreva o erro:

Criador de Codigo para JanelaPostada em: 07/11/2009

Script Master
Por: Script Master Nº de Visualizações: 70.

Demonstração do script

Código fonte do script

<html>


<body>

<center><img src=figura2.gif border=0>

<form name="geek_janela" action="" method="post">
<script language="JavaScript">


<!--
function popup(url, name, width, height)
{
settings=
"toolbar=yes,location=yes,directories=yes,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width="+width+",height="+height;

MyNewWindow=window.open("http://"+url,name,settings);
}
 
function testmywindow()
{
result=new Array(7);
for (i=1; i<=7; i++){result[i]="no"};
with (document.geek_janela)
{
if (G1[0].checked) {result[1]="yes"};
if (G2[0].checked) {result[2]="yes"};
if (G3[0].checked) {result[3]="yes"};
if (G4[0].checked) {result[4]="yes"};
if (G5[0].checked) {result[5]="yes"};
if (G6[0].checked) {result[6]="yes"};
if (G7[0].checked) {result[7]="yes"};

settings="toolbar="+result[1]+",location="+result[2]+",directories="+result[3]+",status="+result[4]+",menubar="+result[5]+",scrollbars="+result[6]+",resizable="+result[7]+",width="+newwidth.value+",height="+newheight.value;
if (newleft.value != 0 ) {settings=settings+",left="+newleft.value};
if (newtop.value != 0 ) {settings=settings+",top="+newtop.value};
window.open(url.value, "Janela", settings);
code.value="<!-- Início do codígo -->n<a href="#" onClick="window.open('"+url.value+"','Janela','"+settings+"'); return false;"><font face=verdana size=1 color=6495ed><b>descrição do link</b></a>n<!-- fim do codígo -->";
}
}
//-->
</script>
<center>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr><td>
<div align="center">
  <p style="margin-top: 0; margin-bottom: 0"><font size="1" color="#6495ed" face="verdana"><b>preencha abaixo os campos que você deseja</b></font></div>
</td></tr><tr>
<td height="44">
<div align="center">
<p style="margin-top: 0; margin-bottom: 0">
<b>
<font color="#003399" face="Tahoma" size="2">
<input type="text" name="url" size="40" value="http://www." style="color: #696969; border: 1px solid #f8f8f8;font-family:verdana;font-size:8pt;">
</font>
</b>
</div>
</td></tr></table>
                        <table width="423" border="0" cellspacing="0" cellpadding="2" height="139" style="border-collapse: collapse; border-style: outset; border-width: 1" bordercolor="#ffffff">
                          <tr bgcolor="#696969">
                            <td width="285" class="bodyfonts" height="18" bgcolor="#d5d5d5">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font size="1" color="#696969" face="verdana"><b>opções</font></div>
                            </td>
                            <td width="128" class="bodyfonts" height="18" bgcolor="#d5d5d5">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font size="1" color="#696969" face="verdana"><b>atributos</font></div>
                            </td>
                          </tr>
                          <tr bgcolor="#CCCCCC">
                            <td width="285" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="1" color="#6495ed" face="verdana"><b>mostrar
                              barra de ferramentas?</font></td>
                            <td width="128" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" value="V19" name="G1" checked></font></b>
                                <font size="1" color="#6495ed" face="verdana"><b>Sim <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" name="G1" value="V20"></font></b>
                                N&atilde;o </font> </div>
                            </td>
                          </tr>
                          <tr bgcolor="#DDDDDD">
                            <td width="285" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="1" color="#6495ed" face="verdana"><b>mostrar
                              barra de endere&ccedil;os?&nbsp;</font></td>
                            <td width="128" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" value="V21" name="G2" checked></font></b>
                                <font size="1" color="#6495ed" face="verdana"><b>Sim <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" name="G2" value="V22"></font></b>
                                N&atilde;o </font> </div>
                            </td>
                          </tr>
                          <tr bgcolor="#CCCCCC">
                            <td width="285" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="1" color="#6495ed" face="verdana"><b>mostrar
                              lista de diret&oacute;rios? &nbsp;</font></td>
                            <td width="128" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" value="V23" name="G3" checked></font></b>
                                <font size="1" color="#6495ed" face="verdana"><b>Sim <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" name="G3" value="V24"></font></b>
                                N&atilde;o </font> </div>
                            </td>
                          </tr>
                          <tr bgcolor="#DDDDDD">
                            <td width="285" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="1" color="#6495ed" face="verdana"><b>mostrar
                              barra de status ?</font></td>
                            <td width="128" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" value="V23" name="G4" checked></font></b>
                                <font size="1" color="#6495ed" face="verdana"><b>Sim <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" name="G4" value="V24"></font></b>
                                N&atilde;o </font> </div>
                            </td>
                          </tr>
                          <tr bgcolor="#CCCCCC">
                            <td width="285" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="1" color="#6495ed" face="verdana"><b>mostrar
                              barra de bot&otilde;es?&nbsp;</font></td>
                            <td width="128" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" value="V23" name="G5" checked></font></b>
                                <font size="1" color="#6495ed" face="verdana"><b>Sim <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" name="G5" value="V24"></font></b>
                                N&atilde;o</font></div>
                            </td>
                          </tr>
                          <tr bgcolor="#DDDDDD">
                            <td width="285" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="2" color="#000000" face="Tahoma"><font size="1" color="#6495ed" face="verdana"><b>incluir
                              barras de rolagem?</font></td>
                            <td width="128" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" value="V23" name="G6" checked></font></b>
                                <font size="1" color="#6495ed" face="verdana"><b>Sim <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" name="G6" value="V24"></font></b>
                                N&atilde;o </font> </div>
                            </td>
                          </tr>
                          <tr bgcolor="#CCCCCC">
                            <td width="285" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="2" color="#000000" face="Tahoma"><font size="1" color="#6495ed" face="verdana"><b>pode
                              ser maximizada?&nbsp;</font></td>
                            <td width="128" class="bodyfonts" height="21" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0">
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" value="V23" name="G7" checked></font></b>
                                <font size="1" color="#6495ed" face="verdana"><b>Sim <b>
                                <font face="Tahoma" size="2">
                                <input type="radio" name="G7" value="V24"></font></b>
                                N&atilde;o </font> </div>
                            </td>
                          </tr>
                          <tr bgcolor="#DDDDDD">
                            <td width="285" class="bodyfonts" height="20" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="1" color="#6495ed" face="verdana"><b>largura
                              da janela&nbsp;</font></td>
                            <td width="128" class="bodyfonts" height="20" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0"
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="text" name="newwidth" size="4" value="600" class="minifonts" style="color: #696969; border: 1px solid #f8f8f8;font-family:verdana;font-size:8pt;"></font></b>
                                </font>
                                </div>
                            </td>
                          </tr>
                          <tr bgcolor="#CCCCCC">
                            <td width="285" class="bodyfonts" height="1" bgcolor="#FFFFFF">
                            <p style="margin-top: 0; margin-bottom: 0">
                            <font size="1" color="#6495ed" face="verdana"><b>altura
                              da janela</font></td>
                            <td width="128" class="bodyfonts" height="1" bgcolor="#FFFFFF">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0"
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <font face="Tahoma" size="2">
                                <input type="text" name="newheight" size="4" value="300" class="minifonts" style="color: #696969; border: 1px solid #f8f8f8;font-family:verdana;font-size:8pt;"></font></b> <b>
                                <font face="Tahoma" size="2">
                                <input type="hidden" name="newleft">
                                <input type="hidden" name="newtop">
                                </font>
                                </b> </font>
                                </div>
                            </td>
                          </tr>
                          <tr>
                            <td colspan="2" height="1" width="417">
                              <div align="center">
                                <p style="margin-top: 0; margin-bottom: 0"
                                <font color="#003399" face="Tahoma" size="2">
                                <b>
                                <input type="button" value="testar e criar código" name="B1" onClick="testmywindow()" style="color: #696969;font-weight:bold; border: 1px solid #f8f8f8;font-family:verdana;font-size:8pt;"></b> <b>
                                <input type="reset" value="cancelar" name="B2" style="color: #696969; font-weight:bold; border: 1px solid #f8f8f8;font-family:verdana;font-size:8pt;"></b>
                                </font>
                                </div>
                            </td>
                          </tr>
                        </table>
</center>
<p style="margin-top: -5; margin-bottom: -5">&nbsp;</p>
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="85%" id="AutoNumber1">
  <tr>
    <td width="100%"></td>
  </tr>
</table>

<b><font face="verdana" size="1" color="#6495ed">seu código
</font><font face="Tahoma" size="2" color="#003399"><br>
<textarea name="code" cols="55" rows="10" wrap="PHYSICAL" class="fonts" style="color: #696969; border: 1px solid #f8f8f8;font-family:verdana;font-size:8pt;">seu código apareçe aqui</textarea>
</font></b>
</center>
</form></font>

</body>
</html>