Ir para conteúdo
Fórum Script Brasil

High

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Sobre High

High's Achievements

0

Reputação

  1. Tenta assim: $TextName[0] $TextName[1] $TextName[2] ... $TextName[49]
  2. High

    Protegendo O Código Fonte

    Eu consegui abrir utilizando o Internet Explorer: <html> <head> <title>P&aacute;gina Segura</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> body,table { margin: 0px; color: #000000; font-family: arial; line-height: 18px; } a:link {color: #cc0000; text-decoration: none;} a:hover {color: #cc7733; text-decoration: none;} a:active {color: #cc7733; text-decoration: none;} a:visited {text-decoration: none;} </style> <script language="JavaScript1.2"> <!-- function validar() { with(document.vercod) { if (url.value == "" || url.value == "http://") { alert("Escreva alguma coisa!"); url.focus(); return false; } } } //function limpa(campo) { // if(campo.defaultValue == campo.value) // campo.value="" //} //function escreve(campo) { // if(campo.value == "") // campo.value = campo.defaultValue //} function vercodigo() { document.vercod.botao.value="Aguarde"; setTimeout("document.vercod.botao.value='ver código'",3000); window.location.href= "view-source:" + document.vercod.url.value; return false; } //--> </script> </head> <body vlink="#cc0000"> <table border="0" width="770"> <tr><td style="padding-top: 30px; padding-left: 30px;"> <font size="4"><strong>Este é um script criado por <a href="index.php?abre=creditos" target="_parent" style="position: relative; z-index: 2;"> Carlos Reche</a> para proteger o código fonte de uma página.</strong></font> <br /><br /><br /> <strong><font color="#023f88">A página que está sendo protegida é esta. Ou seja, a que contém um formulário. Fique à vontade para tentar vizualizar seu código fonte. Mas lembre-se: enquanto você não estiver vendo nenhum &lt;form&gt; ... &lt;/form&gt;, não será o código protegido. </font><br/><br /><br /> Vantagens deste método: <br /><br /><font color="#666666"> Pode-se criar um site como qualquer outro desta forma, sem muito trabalho. Além disso, A navegação não fica comprometida para os usuários que gostam de utilizar os recursos do botão direito (exceto o "Exibir Código Fonte", lógico... hehehe). E, com isso, não há necessidade de se colocar uma mensagem do tipo: "Botão direito desativado", que é uma coisa muito desagradável pra quem acessa o site.</font> </strong> </td></tr> <tr><td style="padding-top: 30px; padding-left: 30px;"> <strong><font color="#023f88">Este script exibe o código fonte de uma página. Basta você colocar o endereço e clicar em "ver código". Mas será mesmo que vale pra qualquer página? : )</font></strong> <form name="vercod" target="_blank" onsubmit="return vercodigo();"> <input type="text" size="60" value="http://" name="url" style="position: relative; z-index: 2; margin-left: 30px;" /> <input type="submit" value="ver código" name="botao" style="position: relative; z-index: 2;" /> </form> </td></tr> </table> <iframe src="masc.php" width="100%" height="100%" frameborder="0" allowtransparency="true" marginwidth="10" marginheight="10" style="position:absolute; left:0px; top:0px; z-index: 1;"> </iframe> </body> </html>
×
×
  • Criar Novo...