kod::
<!-- TWO STEPS TO INSTALL MULTIPLE USERS:
1. Copy the first code into the HEAD of your HTML document
2. Put the last coding into the BODY of your HTML document --><!-- STEP ONE: Copy this code into the HEAD of your login HTML document --><SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- 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=="KULLANICI ADINI YAZIN" && password=="ŞİFREYİ YAZIN") { window.location="GİDİLECEK SAYFA ADRESİNİ YAZIN"; done=1; }
if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; }
if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
if (done==0) { alert("Hatali kullanici adi veya sifre girdiniz. Lütfen dogru bilgileri tekrar girdikten sonra deneyin!"); }
}
// End -->
</SCRIPT><!-- STEP TWO: Paste this code into the BODY of your HTML document --><center>
<form name="login">
<table cellpadding="3" width="225" border="1">
<tbody>
<tr>
<td colspan="2"><center><font size="+2"><strong>Şifrenizi girin</strong></font></center></td>
</tr>
<tr>
<td>Kullanıcı:</td>
<td><input name="username" type="text" /></td>
</tr>
<tr>
<td>Parola:</td>
<td><input name="password" type="text" /></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="button" onClick_fckprotectedatt=" onClick="Login()"" value="GİRİŞ" /></td>
</tr>
</tbody>
</table>
</form>
</center>
<p> </p>
<center><!-- Script Size: 1.60 KB --></center>
|