On Apr 12, 2010, at 11:08 AM, Reese wrote:
> I'd be happy to take a look, I'm always on the lookout for good
> login scripts and I'd be happy to provide any feedback I can.
Here's what I've been sending out.
> After making the offer, it occurred that it's been so long since I started
> using the code I wasn't sure I could accurately help anyone else start using
> it. But it looks pretty basic. Do one thing, though. Make sure you try it on
> duplicates or non-essential files. (Of course, you would have done that
> anyway.)
>
>
>
> ONE*** This goes in the head section of the html page:
>
>
> <script src="login.js" type="text/javascript"></script>
>
>
>
>
> TWO*** Then this form goes in the body section. You decide the content to
> include other than the form fields.
>
>
>
> <form name="login" id="login">
> <center>
> <table width=760 border=0 cellspacing="25px" cellpadding="5px">
>
> <tr><td colspan="2"><a href="../index.html"><img src="mmmmm.png" alt="MMMMM
> name & logo" width="750" height="87" align="top" title="Return to Home"
> /></a>
> </td>
> </tr>
>
> <tr><td colspan="2"><img src="ooooo.png" alt="Account Login at OOOOO"
> /> <br />
> </td></tr>
>
> <tr bgcolor="#154212"><th colspan="2">Enter Your Private Website<br />
> <span class="style1">Please type your Username and Password, then
> click
> Login — Not Return</span></th></tr>
>
> <tr><th><span class="style2"> <br />
> Username:</span></th>
> <th><span class="style2"> <br />
> Password:</span></th></tr>
>
> <tr><th><div align="center"><input type=text name=username /></div></th>
> <th><div align="center"><input type=text name=password
> /></div></th></tr>
>
> <tr><th colspan="2">
> <input type=button value="Login!" onClick="Login()" />
> </th></tr>
>
> </table>
> </center>
>
> </form>
>
>
>
>
>
> THREE*** The you create the "login.js" file from the following code. We
> have 13 different logins leading to thirteen different pages. Each one needs
> just 3 pieces of info: username, password and the page linked to.
>
> Chuck M
>
>
> 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=="aaaa" && password=="bbbbb") {
> window.location="pagename.html"; done=1;
> }
>
> if (username=="ccccc" && password=="ddddd") {
> window.location="pagename2.html"; done=1;
> }
>
>
>
>
> if (done==0) { alert("Invalid login!"); }
> }
>
> // End
>
>
>
>
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/