<html>
<head>
<meta name="GENERATOR" content="(c) 1998 Copyright Next Step Software">
<title>Passwords -&nbsp; Total JavaScripts 99</title>
</head>
<script LANGUAGE="JavaScript">
<!--//
browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0) { roll = 'true'; }
else { roll = 'false'; }
function msover1(img1,ref1) { if (roll == 'true') { document.images[img1].src = ref1; } }
function msout1(img1,ref1) { if (roll == 'true') { document.images[img1].src = ref1; } }
function msover2(img1,ref1,img2,ref2) { if (roll == 'true')
{ document.images[img1].src = ref1; document.images[img2].src = ref2;} }
function msout2(img1,ref1) { if (roll == 'true')
{ document.images[img1].src = ref1; } }
function msover3(img1,ref1,img2,ref2,img3,ref3) { if (roll == 'true')
{ document.images[img1].src = ref1; document.images[img2].src = ref2; document.images[img3].src = ref3; } }
function msout3(img1,ref1,img2,ref2) { if (roll == 'true')
{ document.images[img1].src = ref1; document.images[img2].src = ref2; } }
//-->
</script>
<body onLoad="window.defaultStatus='Passwords - Total JavaScripts 99'">
<p><!--webbot bot="ImageMap" startspan
rectangle="(160,1) (205,16) javascript:history.go(-1)"
rectangle="(389,1) (449,16) javascript:history.go(1)"
alt="Click Mouse on Main Menu Bar to Activate It!" border="0" height="29" src="title.GIF"
width="450" --><MAP NAME="FrontPageMap0"><AREA SHAPE="RECT" COORDS="160,1,205,16" HREF ="javascript:history.go(-1)"><AREA SHAPE="RECT" COORDS="389,1,449,16" HREF ="javascript:history.go(1)"></MAP><IMG alt="Click Mouse on Main Menu Bar to Activate It!" border=0 height=29 src="title.GIF" useMap=#FrontPageMap0 width=450><!--webbot bot="ImageMap" i-checksum="24119" endspan --></p>
<table border="0" cellpadding="0" cellspacing="0" width="153">
<tr>
<td><A href="logincoder_.htm" onmouseout="msout1('imageA','_view1.gif');"
onmouseover="msover1('imageA','_view2.gif');"><IMG alt="Total Java Scripts 99" border
=0 height=29 name=imageA src="_view1.gif" width=158 ></A> </td>
<td></td>
</tr>
</table>
<form method="post" action="--WEBBOT-SELF--">
<p><TEXTAREA cols=64 name=scrolls rows=23 style="BACKGROUND-COLOR: rgb(255,200,16); COLOR: rgb(0,0,0)">
&lt;!-- ONE STEP TO INSTALL LOGIN CODER:
1. Add the first code into the BODY of your HTML document --&gt;
&lt;!-- STEP ONE: Add the first code into the BODY of your HTML document --&gt;
&lt;BODY&gt;
&lt;center&gt;&lt;table border=1&gt;
&lt;tr&gt;&lt;form name=members&gt;&lt;td rowspan=4&gt;
&lt;select name=memlist size=10 onChange=&quot;showmem(this.form)&quot;&gt;
&lt;!-- Original: Dion ([email protected]) --&gt;
&lt;!-- Web Site: http://www.omen.com.au/~dion --&gt;
&lt;!-- This script and many more are available online from --&gt;
&lt;!-- The JavaScript Source!! http://javascriptsource.com --&gt;
&lt;!-- &quot;member name | password | destination pagename |&quot; --&gt;
&lt;option selected value=&quot;John Smith|password|mainpage|&quot;&gt;John Smith
&lt;option value=&quot;Peter Jones|theirpwd|endpages|&quot;&gt;Peter Jones
&lt;option value=&quot;Sue Brown|asdfvcxz|nowheres|&quot;&gt;Sue Brown
&lt;option value=&quot;Sally West|zaqxswde|logintop|&quot;&gt;Sally West
&lt;/select&gt;&lt;/td&gt;
&lt;td align=right&gt;User:&lt;/td&gt;&lt;td&gt;&lt;input type=hidden value=&quot;0&quot; name=entry&gt;
&lt;input type=text name=memname size=10 value=&quot;&quot; onBlur=&quot;update(this.form)&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=right&gt;Password:&lt;/td&gt;&lt;td&gt;&lt;input type=text name=password size=10 maxlength=8 onBlur=&quot;update(this.form)&quot;&gt; *&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=right&gt;Page Name:&lt;/td&gt;&lt;td&gt;&lt;input type=text name=pagename size=10 maxlength=8 onBlur=&quot;update(this.form)&quot;&gt;&lt;b&gt;.html&lt;/b&gt; *&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=2 align=center&gt;
&lt;input type=button value=&quot;New User&quot; onclick=&quot;addnew(this.form);&quot;&gt;
&lt;input type=button value=&quot;Delete User&quot; onclick=&quot;delthis(this.form);&quot;&gt;
&lt;input type=button value=&quot;Show Coding&quot; onclick=&quot;create(this.form);&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=3 align=center&gt;
&lt;input type=text size=60 name=message value=&quot;Note: Starred entries (*) must be exactly 8 letters! (a-z)&quot;&gt;
&lt;input type=hidden name=num value=1&gt;&lt;/td&gt;
&lt;/form&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;hr size=2 width=75%&gt;
&lt;form name=js&gt;&lt;textarea cols=75 rows=10 name=scrpt wrap=virtual&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
&lt;!-- Begin
var params=new Array(4);
var alpha=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI&quot;;
function check(form) {
which=form.memlist.selectedIndex;
choice = form.memlist.options[which].value+&quot;|&quot;;
if (choice==&quot;x|&quot;) {
alert(&quot;Please Select Your Name From The List&quot;);
return;
}
p=0;
for (i=0;i&lt;3;i++) {
a=choice.indexOf(&quot;|&quot;,p);
params[i]=choice.substring(a,p);
p=a+1;
}
h1=makehash(form.pass.value,3);
h2=makehash(form.pass.value,10)+&quot; &quot;;
if (h1!=params[1]) {
alert(&quot;Incorrect Password!&quot;); return; };
var page=&quot;&quot;;
for (var i=0;i&lt;8;i++) {
letter=params[2].substring(i,i+1)
ul=letter.toUpperCase();
a=alpha.indexOf(ul,0);
a-=(h2.substring(i,i+1)*1);
if (a&lt;0) a+=26;
page+=alpha.substring(a,a+1); };
top.location=page.toLowerCase()+&quot;.html&quot;;
}
function makehash(pw,mult) {
pass=pw.toUpperCase();
hash=0;
for (i=0;i&lt;8;i++) {
letter=pass.substring(i,i+1);
c=alpha.indexOf(letter,0)+1;
hash=hash*mult+c;
}
return(hash);
}
// End --&gt;
&lt;/script&gt;
&lt;/textarea&gt;
&lt;/form&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
&lt;!-- Begin
var params=new Array(4);
var script=document.js.scrpt.value;
document.js.scrpt.value=&quot;Create your users, their passwords, and their destination pages using the form above.\n\nThen, click 'Show Coding' to see the login HTML and JavaScript that you need to put on your page to password-protect your site with that info.\n\nQuestions about this script or how to put it on your site should be directed to it's author via email: [email][email protected][/email]\n\n*Honestly, we don't even totally understand this JavaScript!*&quot;;
var alpha=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI&quot;;
showmem(document.members);
function showmem(form) {
document.members.num.value=document.members.memlist.length;
var which=form.memlist.selectedIndex;
splt(form.memlist[which].value);
form.entry.value=which+1;
for (i=2;i&lt;5;i++) {
form.elements[i].value=params[i-2]; };
}
function splt(choice) {
p=0;
for (i=0;i&lt;3;i++) {
a=choice.indexOf(&quot;|&quot;,p);
params[i]=choice.substring(a,p);
p=a+1;
}
}
function addnew(form) {
newmem=getfields(form);
var who=prompt(&quot;New User's Name:&quot;,&quot;&quot;);
form.memlist[form.memlist.length] = new Option(who, newmem, false, true);
if (navigator.appName==&quot;Netscape&quot;) {
document.js.scrpt.value=script;
history.go(0);
}
else {
showmem(document.members);
}
}
function getfields(form) {
newmem=&quot;&quot;;
for (i=2;i&lt;5;i++) {
newmem+=form.elements[i].value+&quot;|&quot;; };
for (i=3;i&lt;5;i++) {
a=form.elements[i];
if (a.value.length!=8)
alert(a.name+&quot; Requires 8 characters!&quot;);
for (k=0;k&lt;8;k++) {
b=a.value.substring(k,k+1);
c=b.toUpperCase();
if (alpha.indexOf(c,0)&lt;0) {
alert(a.name+&quot; Must Use Letters A Through Z Only!&quot;); break; };
}
}
return(newmem);
}
function delthis(form) {
if (confirm(&quot;Delete &quot;+form.memname.value+&quot;?&quot;)) {
form.memlist.options[form.entry.value-1]=null;
form.message.value=form.memname.value+&quot; Deleted&quot;;
form.memlist.selectedIndex=0;
if (navigator.appName==&quot;Netscape&quot;) {
document.js.scrpt.value=script;
history.go(0);
}
else {
showmem(document.members);
}
}
}
function update(form) {
form.memlist[form.entry.value-1].value=getfields(form);
form.message.value=form.memname.value+&quot;'s record was updated&quot;;
}
function create(form) {
var html=&quot;&lt;center&gt;&lt;form name=login&gt;\n&quot;;
html+=&quot;&lt;table border=1 cellpadding=3&gt;\n\n&quot;;
html+=&quot;&lt;!-- Original: Dion ([email protected]) --&gt;\n&quot;;
html+=&quot;&lt;!-- Web Site: http://www.omen.com.au/~dion --&gt;\n&quot;;
html+=&quot;&lt;!-- This script and many more are available online from --&gt;\n&quot;;
html+=&quot;&lt;!-- The JavaScript Source!! http://javascriptsource.com --&gt;\n\n&quot;;
html+='&lt;tr&gt;&lt;td colspan=2 align=center&gt;&lt;font size=&quot;+2&quot;&gt;&lt;b&gt;Members-Only Area!&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;\n';
html+=&quot;&lt;tr&gt;&lt;td&gt;Username:&lt;/td&gt;&lt;td&gt;&lt;select name=memlist&gt;\n&lt;option value='x'&gt;&quot;;
for (j=0;j&lt;form.memlist.length;j++) {
splt(form.memlist.options[j].value);
h1=makehash(params[1],3);
h2=makehash(params[1],10)+&quot; &quot;;
var page=&quot;&quot;;
for (var i=0;i&lt;8;i++) {
letter=params[2].substring(i,i+1);
ul=letter.toUpperCase();
a=alpha.indexOf(ul,0);
a+=(h2.substring(i,i+1)*1);
page+=alpha.substring(a,a+1);
}
html+=&quot;\n&lt;option value='&quot;+params[0]+&quot;|&quot;+h1+&quot;|&quot;+page+&quot;'&gt;&quot;+params[0];
};
html+=&quot;\n&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;\n&quot;;
html+=&quot;&lt;tr&gt;&lt;td&gt;Password:&lt;/td&gt;&lt;td&gt;&lt;input type=password size=10 maxlength=8 name=pass&gt;&lt;/td&gt;&lt;/tr&gt;\n&quot;;
html+='&lt;tr&gt;&lt;td colspan=2 align=center&gt;&lt;input type=button value=&quot;Login&quot; onclick=&quot;check(this.form)&quot;&gt;&lt;/td&gt;\n';
html+=&quot;&lt;/tr&gt;\n&lt;/table&gt;\n&lt;/form&gt;\n&quot;;
document.js.scrpt.value=html+script+&quot;&lt;/center&gt;&quot;;
}
function makehash(pw,mult) {
pass=pw.toUpperCase();
hash=0;
for (i=0;i&lt;8;i++) {
letter=pass.substring(i,i+1);
c=alpha.indexOf(letter,0)+1;
hash=hash*mult+c;
}
return(hash);
}
// End --&gt;
&lt;/script&gt;
&lt;/center&gt;
&lt;!-- Script Size: 6.50 KB --&gt;</TEXTAREA></p>
</form>
<p align="left"><small><small><strong><font face="MS Sans Serif"><small>1998 Copyright (C)
Next Step All Rights Reserved</small></font></strong></small></small></p>
</body>
</html>