Descrição: Com este código você pode bloquear qualquer página com id e senha que só você sabe.
Versão: Tudo que você imaginar
O código é simples, ele só permite sua visita caso você digite o login e a senha.
- Código:
<HTML>
<head>
<title>Entre com o Nome de Usuário e Senha!</title>
<script LANGUAGE="JavaScript">
//Creador: Virkings.es.tl
function password(form)
{ if (form.ID.value=="user") //Coloque o Usuário
{ if (form.pass.value=="123") //Coloque a Senha
{ location="http://staffergroupbr.stuning.net/forum" } //Coloque o Link
else { alert("Erro " +form.ID.value+ ",Acesso Negado!") } }
else { alert("Este usuário não tem acesso!") } }
</script>
</head>
<body>
<table border=0 cellpadding=2 cellspacing=2 width="285" height="98">
<tr>
<td valign="middle" width="115" height="40">
<div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<p><I>Nome de Usuário:</i></td>
</tr>
</table>
</div>
</td>
<td valign="middle" width="150" height="40"><FORM name="login"><INPUT NAME="ID"></td>
<tr><td valign="middle" width="115" height="39">
<div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<p><I>Senha:</i></td>
</tr>
</table>
</div>
</td>
<td valign="middle" width="150" height="39"><INPUT NAME="pass" type="password"> </td>
<tr><td valign="middle" width="115" height="1">
<div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<p><B><I><INPUT TYPE="button" VALUE="Entrar" onClick="password(this.form)"></i></b></td>
</tr>
</table>
</div>
</td>
<td valign="middle" width="150" height="1">
<div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<p><INPUT TYPE="RESET" VALUE="Resetar"> </td>
</tr>
</table>
</div>
</td>
</table>
</body>
</HTML>
- Resultado: