Actually i cant use a PHP/Server side setup atm.
The JS login page isnt secure, but amongst the few who work with us on the systems, its fine. Its just to act as a reminder to not edit certain articles
I didnt want to add the whole code as it was lengthy, but here you go:
For CSS:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="login-box.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div style="padding: 100px 0 0 250px;">
<div id="login-box">
<H2>Login</H2>
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
<br />
<br />
<div id="login-box-name" style="margin-top:20px;">Email:</div><div id="login-box-field" style="margin-top:20px;"><input name="q" class="form-login" title="Username" value="" size="30" maxlength="2048" /></div>
<div id="login-box-name">Password:</div><div id="login-box-field"><input name="q" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" /></div>
<br />
<span class="login-box-options"><input type="checkbox" name="1" value="1"> Remember Me <a href="#" style="margin-left:30px;">Forgot password?</a></span>
<br />
<br />
<a href="#"><img src="images/login-btn.png" width="103" height="42" style="margin-left:90px;" /></a>
</div>
</div>
For Javascript login page:
Code:
<body>
<div id="container"><br>
<div id="Layer1"
style="position: absolute; text-align: left; top: 1px; height: 671px; z-index: 6; width: 843px; left: 36px;"
title="">
<div id="Html1"
style="position: absolute; left: 27px; top: 280px; width: 18px; height: 100px; z-index: 2;">
<script type="text/javascript">
<!--
function authPass(u,p) {
if (u && p) self.location = "./Login/auth.htm?" + u + p;
return false;
}
// -->
</script>
<div>
<script type="text/javascript">
<!--
if (location.search.indexOf("auth=failed") != -1) {
document.write("<span style=\"color:#ff0000\">Authorization Failed! Please Enter correct Details</span>");
}
// -->
</script>
<form id="form1" action="javascript://"
onsubmit="return authPass(this.user.value,this.pass.value)">
<table>
<tbody>
<tr>
<td>Username: </td>
<td><input name="user" type="text"></td>
</tr>
<tr>
<td>Password: </td>
<td><input name="pass" type="password"></td>
</tr>
<tr>
<td colspan="2" align="center"><input
value="Login" type="submit"></td>
</tr>
</tbody>
</table>
</form>
Hope this makes it easier for you to review.
I basically want to fit the Javascript actions into the CSS code/style while continuing to use the Javascript login method.
IS this practically possible?
Thanks for your help!