domingo, 9 de junho de 2019

!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="Usuario1" && password=="SenhaDoUsuario1") { window.location="SiteQueOUsuario2Vai"; done=1; }
if (username=="Usuario2" && password=="SenhaDoUsuario2") { window.location="SiteQueOUsuario2Vai"; done=1; }
if (username=="Usuario3" && password=="SenhaDoUsuario3") { window.location="SiteQueOUsuario2Vai"; done=1; }
if (done==0) { alert("Senha ou Usuário inválido."); }
}
// End -->

<br />
<center>
<form name="login">
<table border="0" cellpadding="3" style="height: 123px; width: 225px;">
<tbody>
<tr><td colspan="2" height="13"><center>
  <span style="font-family: Arial Black;">Faça o Login:</span><br />

  </center>
</td></tr>
<tr><td height="22"><div align="right">
<span style="font-family: Verdana; font-size: 11pt; font-weight: 700;">
  </span></div>
<div align="right">
<span style="font-family: Verdana; font-size: 20px; font-weight: bold;">Usuário:</span></div>
</td>
  <td height="22"><input name="username" size="20" type="text" /></td></tr>
<tr><td height="22"><div align="right">
<b style="font-family: Verdana; font-size: 20px;">Senha:</b><span style="font-family: Verdana; font-size: 20px; font-weight: bold;">:</span></div>
</td><td height="22"><input name="password" size="20" type="password" /></td></tr>
<tr><td align="center" colspan="2" height="26">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="text-align: start;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br />
<input onclick="Login()" type="button" value="Entrar" /><br />
<span style="text-align: start;"><br /></span></td></tr>
</tbody></table>
</form>
</center>