Re: login page timeout | | sorry about that i copied the wrong text file here it is
<td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><script language="javascript" type="text/javascript">
var userFolder = "";
var HTMLextention = ".htm";
var inProgressMSG = "Attempting login...";
var userFailMSG = "Invalid username or password";
function login(){
var username= document.getElementById('username').value;
var password= document.getElementById('password').value;
username= username.toLowerCase();
password= password.toLowerCase();
var fullURL= "";
fullURL= userFolder + username + "~" + password + HTMLextention;
setTimeout("failEvents();", 15000);
document.getElementById('errorDisplay').value = inProgressMSG;
showMSG();
setTimeout("showMSG();", 5000);
verifWin.document.open();
verifWin.document.location.href = fullURL;
verifWin.document.close();
}
function passEvents(data){
var URL = data;
location.href=URL;
}
function failEvents(){
document.getElementById('errorDisplay').value = userFailMSG;
showMSG();
}
function showMSG() {
if ((document.getElementById("isShown_errorConsole"). value)=="N") {
document.getElementById("errorConsole").style.disp lay='';
document.getElementById("isShown_errorConsole").va lue="Y";}
else if ((document.getElementById("isShown_errorConsole"). value)=="Y") {
document.getElementById("errorConsole").style.disp lay='none';
document.getElementById("isShown_errorConsole").va lue="N";}
}
</script>
<table width="100" border="0" align="center" cellpadding="1" cellspacing="5" bordercolor="#FFFFFF" bgcolor="#9FB8FF">
<tr>
<td bgcolor="#9FB8FF" align="center"><b><font size="4" color="#FFFFFF">Authorization Required</font></b></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><form action="javascript:login();" method="get" name="LoginScript" id="LoginScript">
<table border="0" cellspacing="10" cellpadding="0" width="60">
<tr>
<td> Username</td>
<td align="right"> <div align="center">
<input name="username" id="username" type="text" style="border:1px solid #828177;" value="" />
</div></td>
</tr>
<tr>
<td> Password</td>
<td align="right"> <div align="center">
<input name="password" id="password" type="password" style="border:1px solid #828177;" value="" />
</div></td>
</tr>
<tr>
<td><iframe name="verifWin" src="" width="1" height="1" frameborder="0" border="0"></iframe></td>
<td align="right"><div align="center">
<input name="submit" type="submit" style="border:1px solid #9FB8FF;color:#FFFFFF;background-color:#9FB8FF;" value="Login" />
</div></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><input type="hidden" id="isShown_errorConsole" value="Y" />
<span id="errorConsole" style="display:;">
<input type="button" id="errorDisplay" style="width:100%;background-color:#FFFFFF;border:0px;" value="Error: Please enable Javascript" />
</span><script language="javascript" type="text/javascript">showMSG();</script></td>
</table>
a site within a site i meant:: i have my main site which has restricted parts after they log in they gain access to the to the members site which is a folder within the first site .thats the only way i could think of doing it. technically the folder contains a copy of the site but with extra pages. i do hope that makes sense lol
but if you can help me put a bit of code on each members page or direct me in the right direction i would be grate full
thanks johnny |