::Page details ::
Title: Born On DateDetails: 2.64 KB August 18 1997Description: In place of the boring 'Last Updated' script, you can use this script. It does everything and more - it gives the page title, the day the page was last updated, and if the page has been updated since the visitor's last visit all in a cool little table!
Title: Break FramesDetails: 0.59 KB August 18 1997Description: If a visitor comes to your site and is looking through frames, this script will automatically make the page 'break out' of frames. As an added bonus, it's only 8 lines of script!
Title: Check URLDetails: 0.58 KB July 3 1998Description: This script is particularly useful for those who have their site on a free webspace provider, then use a "come.to" redirecting service. What this script will do is analyze the URL the visitor is at, and if they did not came to your site via the redirecting URL, it can print out a message telling them that is your new URL. Neat
Title: Date & Time StampDetails: 0.97 KB August 18 1997Description: With this script, you can have the date and time the page was loaded 'stamped' to the page. This would make a wonderful header or footer for any web page
Title: Date UpdatedContributor: Kenneth Preston (drkennan@ionet.net)Details: 0.65 KB April 16 1998Description: On your site, you might want to just let visitors know the date that the script was updated, but not the time (maybe it's not important?) This simple script (about a dozen lines) you can do just that! Very neat!
Title: Fake CounterDetails: 0.69 KB August 18 1997Description: If you don't quite have the traffic you'd like to your site, you can use your own fake page counter! Funny! Just don't get too carried away when you set the multiplier.... :-)
Title: Last ModifiedDetails: 1.17 KB August 18 1997Description: When you just can't stand to look at another 'Last Updated: Feb 02 1998 14:12:56:10' Script, give this script a try. It'll write to the page in the format, 'Last Updated February 2 1998' This looks much better!
Title: Link of MinuteContributor: Joe Merical (jmpch@aol.com)Contributor URL: http://members.aol.com/jmpchDetails: 2.00 KB March 2 1998Description: JavaScript will create a link that will change depending on the minute of the hour! You can add as many entries as you want! It's great!
Title: Page VariableDetails: 0.61 KB April 16 1998Description: Not exactly the most used script, but this one allows you to reference the page name in a variable. Instead of yourdomain.com/index.html, you can use this script to create a variable that stores index.html for your use! You can use it with alerts, document.write, etc. Take a look!
Title: Page Viewed DateDetails: 0.60 KB August 18 1997Description: I think it's always interesting to see some information about the page itself. This JavaScript will write out when the page was viewed, according to the visitor's clock.
Title: Page Up for...Details: 2.71 KB August 18 1997Description: JavaScript can even display how long your web page has been online. The script has a very nice readout, and even follows English grammar rules!
Title: Time BoxDetails: 1.41 KB August 18 1997Description: This is a neat little script that makes your web page look a whole lot more 'professional'. This JavaScript will display a small box with the time the visitor loaded the page.
Title: Time On Page (Alert)Details: 2.92 KB August 18 1997Description: If you want to show your visitors how long they have been on your page but don't exactly like those clock displays, then you might like this script. When the visitor leaves or clicks the button, they are alerted to the time they have been on your page. Many times, they won't even expect it!
<!-- THREE STEPS TO INSTALL TIME ON PAGE (ALERT):
1. Paste the coding into the HEAD of your HTML document
2. Copy the onLoad event handler into the BODY tag
3. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
var onHours = " ";
var onMinutes = " ";
var onSeconds = " ";
var offHours = 0;
var offMinutes = 0;
var offSeconds = 0;
var logSeconds = 0;
var logMinutes = 0;
var logHours = 0;
var OnTimeValue = " ";
var OffTimeValue = " ";
var PageTimeValue = " ";
function WinOpen()
{
getLogoffTime();
window.location="js_page_category.html"
window.location="js_page_category.html"
}
function getLogonTime() {
var now = new Date();
var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var Hours = now.getHours();
Hours = ((Hours > 12) ? Hours - 12 : Hours);
var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
OnTimeValue =(" "
+ Hours
+ Minutes
+ Seconds
+ " "
+ ampm);
onHours = now.getHours();
onMinutes = now.getMinutes();
onSeconds = now.getSeconds();
}
function getLogoffTime() {
var now = new Date();
var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var Hours = now.getHours();
Hours = ((Hours > 12) ? Hours - 12 : Hours);
var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
OffTimeValue =(" "
+ Hours
+ Minutes
+ Seconds
+ " "
+ ampm);
offHours = now.getHours();
offMinutes = now.getMinutes();
offSeconds = now.getSeconds();
timer();
}
function timer() {
if (offSeconds >= onSeconds) {
logSeconds = offSeconds - onSeconds; }
else {
offMinutes -= 1;
logSeconds = (offSeconds + 60) - onSeconds;
}
if (offMinutes >= onMinutes) {
logMinutes = offMinutes - onMinutes; }
else {
offHours -= 1;
logMinutes = (offMinutes + 60) - onMinutes;
}
logHours = offHours - onHours;
logHours = ((logHours < 10) ? "0" : ":") + logHours;
logMinutes = ((logMinutes < 10) ? ":0" : ":") + logMinutes;
logSeconds = ((logSeconds < 10) ? ":0" : ":") +logSeconds;
PageTimeValue =(" "
+ logHours
+ logMinutes
+ logSeconds);
displayTimes();
}
function displayTimes() {
alert("\nLOG ON TIME : " +OnTimeValue+"\n\nLOG OFF TIME : "+OffTimeValue+"\n\nTIME ON PAGE : " + PageTimeValue);
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->
<BODY onLoad="getLogonTime()">
<!-- STEP THREE: Put this code into the BODY of your HTML document -->
<CENTER>
<FORM>
<INPUT TYPE="button" value="Time on Page" onClick="getLogoffTime()">
</FORM>
</CENTER>
<!-- Script Size: 2.92 KB -->
Title: Time On Page (Clock)Details: 1.29 August 18 1997Description: Occassionally, it might be interesting to show the visitor how long they have been on your page. So, you can use this script to write a clock to the screen that will tell them exactly that!
<!-- THREE STEPS TO INSTALL TIME ON PAGE (CLOCK):
1. Paste the coding into the HEAD of your HTML document
2. Copy the onLoad event handler into the BODY tag
3. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
startday = new Date();
clockStart = startday.getTime();
function initStopwatch() {
var myTime = new Date();
return((myTime.getTime() - clockStart)/1000);
}
function getSecs() {
var tSecs = Math.round(initStopwatch());
var iSecs = tSecs % 60;
var iMins = Math.round((tSecs-30)/60);
var sSecs ="" + ((iSecs > 9) ? iSecs : "0" + iSecs);
var sMins ="" + ((iMins > 9) ? iMins : "0" + iMins);
document.forms[0].timespent.value = sMins+":"+sSecs;
window.setTimeout('getSecs()',1000);
}
// End -->
</script>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->
<BODY onLoad="window.setTimeout('getSecs()',1)">
<!-- STEP THREE: Put this code into the BODY of your HTML document -->
<CENTER>
<FORM>
<input size=5 name=timespent>
</FORM>
</CENTER>
<!-- Script Size: 1.29 KB -->
Title: Time On Page (Seconds)Details: 1.28 KB August 18 1997Description: If the other time on page scripts seem too impersonal for you, this could be your solution. Instead of the 00:00 readout, it displays 'X Secs'. Just another wonder of JavaScript....
<!-- THREE STEPS TO INSTALL TIME ON PAGE (SECONDS):
1. Paste the coding into the HEAD of your HTML document
2. Copy the onLoad event handler into the BODY tag
3. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
startday = new Date();
clockStart = startday.getTime();
function initStopwatch() {
var myTime = new Date();
var timeNow = myTime.getTime();
var timeDiff = timeNow - clockStart;
this.diffSecs = timeDiff/1000;
return(this.diffSecs);
}
function getSecs() {
var mySecs = initStopwatch();
var mySecs1 = ""+mySecs;
mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " secs.";
document.forms[0].timespent.value = mySecs1
window.setTimeout('getSecs()',1000);
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->
<BODY onLoad="window.setTimeout('getSecs()',1)">
<!-- STEP THREE: Put this code into the BODY of your HTML document -->
<CENTER>
<FORM>
<input size=9 name=timespent>
</FORM>
</CENTER>
<!-- Script Size: 1.28 KB -->
Title: Top WindowDetails: 1.48 KB May 29 1998Description: Use this JavaScript to keep a window 'on top' of the rest of your other windows. Not sure what I mean? Try it out and see!
<!-- FOUR STEPS TO INSTALL TOP WINDOW (opener.html):
1. Paste the coding into the HEAD of your "opener" HTML document
2. Copy the second coding into the BODY of your "opener" page
3. Create your pop-up page and save it as popup-page.html
4. Put the onBlur handler in the BODY of popup-page.html -->
<!-- STEP ONE: Copy this code into the HEAD of your "opener" page -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
function topWindow(){
popup = window.open("popup-page.html","","height=175,width=300,scrollbars=no");
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this code the the BODY of your "opener" page -->
<BODY>
<CENTER>
<FORM>
<INPUT TYPE="BUTTON" VALUE="Pop-Up" onClick="topWindow()">
</FORM>
</CENTER>
<!-- Script Size: 0.92 KB -->
<!-- FOUR STEPS TO INSTALL TOP WINDOW (popup-page.html):
1. Paste the coding into the HEAD of your "opener" HTML document
2. Copy the second coding into the BODY of your "opener" page
3. Create pop-up page and save as popup-page.html
4. Put the onBlur handler in the BODY of popup-page.html -->
<!-- STEP THREE: Create pop-up page - save as popup-page.html -->
<!-- STEP FOUR: Add onBlur handler to BODY of popup-page.html -->
<BODY onBlur="self.focus()">
<!-- Script Size: 0.56 KB -->
::Password protection ::
Hatman iaz in gesamt estefade konid code haye jalebi dare
Ti tle: Cookie ProtectionDetails: 5.19 KB August 13 1997Description: You can use a basic cookie script to keep visitors (that don't have the cookie on their system) from viewing certain parts of your site (kind of.... There are always ways around it). The cookie is placed when the password provided is correct. Then, when they are forwarded to the password protected page, the cookie allows them to stay. Those without the cookie are sent back.
(Step 1)
<!-- TWO STEPS TO INSTALL COOKIE PASSWORD PROTECTION:
1. Put the designated coding into the HEAD of your login document
2. Paste the final coding into the BODY of your login document -->
<!-- STEP ONE: Copy this code into the HEAD of your login document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie () {
var exp = new Date();
exp.setTime (exp.getTime() - 1000000000); // This cookie is history
var cval = GetCookie ('FreeStuffL');
document.cookie ='FreeStuffL' + "=" + cval + "; expires=" + exp.toGMTString();
}
function cookieCreater () {
if(GetCookie('FreeStuffL') == null) {
var FreeStuffL_Name = prompt ("What name do you want to go by?", "" );
if (FreeStuffL_Name != null && FreeStuffL_Name != "") {
var expdate = new Date ();
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
SetCookie('FreeStuffL', FreeStuffL_Name, expdate);
alert ("You now are logged in! From now on, when you come to this page, you will be forwarded to the Password Protected Members-Only Area. Please do not tell anyone your entry code. At this new page, you will be shown a list of functions. Have fun!");
location.href = "cookie-in.html"
}
}
else {
DeleteCookie ();
cookieCreater ()
}
}
if(GetCookie('FreeStuffL') != null) {
location.href="cookie-in.html"
}
function check() {
var tester = document.login.numOne.value + document.login.numTwo.value;
if (tester == "") {
alert ("I'm sorry, that code is not correct.");
}
else
{
if (tester == document.login.numThree.value) {
alert ("That is correct!");
cookieCreater ();
}
else {
alert ("Nope!");
}
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Copy this code into the BODY of your login document -->
<BODY>
<center>
<form name='login'>
Enter your login code (FORMAT: login # one, login # two, login # three):
<p><input TYPE='text' NAME='numOne' SIZE=15><br>
<input TYPE='text' NAME='numTwo' SIZE=15 ><br>
<input TYPE='text' NAME='numThree' SIZE=15 ><br>
<input TYPE='button' VALUE='Login' ONCLICK='check()'>
</form>
</center>
<font size=1 color=white>
This page requires Javascript to run! Please get Netscape 2.0 or greater!
</font>
<form name="login2">
<input type=hidden name="go" value="cookie-in.html">
</form>
<!-- Script Size: 3.44 KB -->
(Step 2)
<!-- ONE STEP TO INSTALL COOKIE PASSWORD PROTECTION (PROTECTED):
1. Put the designated coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<SCRIPT>
<!-- Begin
if(GetCookie('FreeStuffL') == null) {
alert ("I'm sorry. You can not view this area! You will be bounced to the login page...")
location.href="pass.html"
}
else
{
document.write("<center><font size=5 color=red>Welcome "+GetCookie('FreeStuffL')+"! </font><font size=4 color=red>Thank you for entering the Javascript Source Password Protected Area. You have access to all files and scripts in this area.</font>");
document.write("<hr><br>The following options will help you keep track of the Members-Only Section..<br>");
document.write("<p><a href=index.html>Go back to The Javascript Source Home Page</a>");
document.write("<form><input type=button onClick='nameWhat()' value='What is my login name?'></form>");
document.write("<form><input type=button value='Erase your account or change your login name!' onClick='DeleteCookie ()'></form>");
document.write("<a href=mailto:antispammer@earthling.net>Mail antispammer@earthling.net</a>");
document.write("<hr><font size=5>T</font>he following items can not be accessed by users that do not have security clearence.<br>");
document.write("<form><input type=button value='Info about how this login page works.' onClick='pageInfo ()'></form><br>");
document.write("<p><font size=5 color=green>This page will, of course, be updated very often! And once again, thanks for registering!</center>");
}
document.write ("<font size=1 color=white>");
// End -->
</SCRIPT>
<!-- Script Size: 1.69 KB -->
Title: Combo PasswordDetails: 1.45 KB August 13 1997Description: Here is a password protection that like a combination lock that changes everytime you enter the page. It basically works off a pattern but the number in the pattern change places.<HTML>
<HEAD>
<TITLE>JavaScript Combination Access Protection</TITLE>
<!-- Cut-N-Paste JavaScript from ISN Toolbox
Copyright 1996, Infohiway Server Network. Restricted use is hereby
granted (both personal and commercial use OK so long as this code is
not *directly* sold), providing this notice is buried somewhere deep
in your HTML document. A link to http://www.infohiway.com is always
appreciated, but is absolutely and positively not necessary. :-) -->
<SCRIPT LANGUAGE="JavaScript">
<!--Hide JavaScript from Java-Impaired Browsers
var deO = 0.1232656874742081854;
var de1 = 0.5555555555555555802;
var de2 = "";
var de3 = 81;
var de4 = "";
var de5 = 0;
var de6 = 0;
var de7 = "abcdefghijklmnopqrstuvwxyz";
var ctr = 0;
function prtComb() {
srand();
de8 = "";
de8 += rand;
de9 = de8.substring(3,12);
de12 = de7.substring(8,9) + de7.substring(13,14) + de7.substring(3,4)
de12 += de7.substring(4,5) + de7.substring(23,24) + "."
document.write("<TABLE BORDER=3><TR><TD COLSPAN=3 ALIGN=CENTER>"
+ "<FONT COLOR='blue'><B>Dealer Price List<BR>Combination Lock"
+ "<BR>(Combination changes every time)</B></FONT></TD></TR><TR>");
for (var i = 0; i < 9; i++) {
de0 = eval(de9.substring(i,i + 1));
de0 = ((de0 * 3) - 2)
if (de0 < 0) {
de0 = 0;
}
de2 += de7.substring(de0,(de0 + 1));
document.write("<TD ALIGN=CENTER><FONT SIZE = 5><B>"
+ de7.substring(de0,(de0 + 1)) + "</B></FONT></TD>");
if (i == 2 || i == 5) {
document.write("</TR><TR>");
}
}
document.write("</TR></TABLE><P><FORM NAME='isnform'><INPUT "
+ "TYPE='text' NAME='cmb' SIZE=9><BR><INPUT TYPE='button' "
+ "NAME='btn' VALUE='Type Combination, then Click Here' "
+ "onClick='confirmBox();'></FORM><P>");
// Hack to correct floating point/binary conversion problem
var de10 = 0.0000000001;
de10 += Math.abs(Math.asin(deO));
de5 += (de1 * Math.sqrt(de3));
var de11 = "";
de11 += de10;
de11 = de11.substring(2,(de5 + 2));
for (var i = 0; i < de5; i++) {
de6 = eval(de11.substring(i,(i + 1))) - 1;
de4 += de2.substring(de6,(de6 + 1));
}
}
function srand() {
// adapted from Stefan Koch's "Introduction to JavaScript" with thanks.
today = new Date();
rand = Math.abs(Math.sin(today.getTime()));
}
function confirmBox() {
if (document.isnform.cmb.value != de4) {
ctr ++;
if (ctr > 2) {
alert("I'm sorry. That one's incorrect, too. You're outa here.");
location.href = "jv_main.html";
}
else {
alert("I'm sorry. That is incorrect combination number " + ctr + ". Try again");
}
}
else {
if (confirm("That is the correct Combination. Click OK to proceed to...")) {
//location.href = de12 + "htm";
alert("Unmark the above line(in the code) if you use this for 'real'")
}
}
}
// -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white">
<!--Your page goes here and this script to paint to screen is
placed where you want it to appear in your document. -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from JavaScript-Impaired Browsers
prtComb();
document.write("<B>The combination for the lock above is now "
+ de4 + ".</B>");
// End hiding -->
</SCRIPT>
<P>
<TABLE WIDTH=486 BORDER="0">
<TR><TD><HR NOSHADE></TD></TR>
<TR><TD><B>Here's How the Combination Lock Works:</B>
<P>The combination is a pattern rather than a fixed, unchanging password. The letters to be typed change every time the screen is loaded. (Hit your Reload button to verify this) For this example, the pattern is a "T". But it can be set to any "pattern" you wish. The combination can be seen as 12358 (in that order) in the table below:<P></TD></TR>
</TABLE>
<TABLE BORDER=3>
<TR><TD COLSPAN=3 ALIGN=CENTER><FONT SIZE=4><B>Pattern for Combination<BR>Above Shown in Red</B></FONT></TD></TR>
<TR>
<TD ALIGN=CENTER><FONT COLOR="red" SIZE=4><B>1</B></FONT></TD>
<TD ALIGN=CENTER><FONT COLOR="red" SIZE=4><B>2</B></FONT></TD>
<TD ALIGN=CENTER><FONT COLOR="red" SIZE=4><B>3</B></FONT></TD></TR>
<TR>
<TD ALIGN=CENTER><FONT COLOR="blue" SIZE=4><B>4</B></FONT></TD>
<TD ALIGN=CENTER><FONT COLOR="red" SIZE=4><B>5</B></FONT></TD>
<TD ALIGN=CENTER><FONT COLOR="blue" SIZE=4><B>6</B></FONT></TD></TR>
<TR>
<TD ALIGN=CENTER><FONT COLOR="blue" SIZE=4><B>7</B></FONT></TD>
<TD ALIGN=CENTER><FONT COLOR="red" SIZE=4><B>8</B></FONT></TD>
<TD ALIGN=CENTER><FONT COLOR="blue" SIZE=4><B>9</B></FONT></TD></TR>
</TABLE>
<p>
<b>Caution:</b> This will not work on Win3.x machines at present.
<hr>
Dealer Price List Combination Lock (Combination changes every time)
z
w
q
h
e
h
e
n
a
The combination for the lock above is now zwqen.
Here's How the Combination Lock Works:
The combination is a pattern rather than a fixed, unchanging password. The letters to be typed change every time the screen is loaded. (Hit your Reload button to verify this) For this example, the pattern is a "T". But it can be set to any "pattern" you wish. The combination can be seen as 12358 (in that order) in the table below:
Pattern for Combination Above Shown in Red
1
2
3
4
5
6
7
8
9
Caution: This will not work on Win3.x machines at present.
Title: GatekeeperDetails: 2.97 KB August 13 1997Description: Here is the best password protection script I have come across. It is also definitely the most user friendly. Try it out! (Note: The password is the filename without the .html ending.) This password for this example is gatekeeper-in
(Step 1)
<!-- TWO STEPS TO INSTALL PASSWORD PROTECTION (GATEKEEPER):
1. Put the designated coding into the HEAD of your login document
2. Paste the final coding into the BODY of your login document -->
<!-- STEP ONE: Copy this code into the HEAD of your login document -->
<HEAD>
<SCRIPT LANGUAGE="javascript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
var nifty_little_window = null;
function gateKeeper() {
nifty_little_window = window.open('gatekeep.html', 'theKeeper', 'width=350,height=200,resizable=1');
}
// End -->
</SCRIPT>
<!-- STEP TWO: Copy this code into the BODY of your login document -->
<BODY>
<CENTER>
<A HREF="" onMouseOver="gateKeeper()">Access the protected area.</A><BR>
<P>
Or, click Enter...<BR>
<FORM NAME="gatekeeperbutton" ACTION="" onSubmit="gateKeeper()">
<input type="submit" value="Enter!">
</FORM>
</CENTER>
<!-- Script Size: 1K (638 bytes) -->
(Step 2)
<!-- FOUR STEPS TO INSTALL PASSWORD PROTECTION (GATEKEEP PAGE):
1. Put the designated coding into the HEAD of document
2. Save the gatekeep image into your web page directory
3. Add the image to the BACKGROUND to BODY of document
4. Copy this code into the BODY of document -->
<!-- STEP ONE: Copy this code into the HEAD of your document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// Get your very own Gate Keeper from Professional Web Design
// http://junior.apk.net/~jbarta/weblinks/gate_keeper/
function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + ".html"
fetch(location)
theKeeper=window.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.open('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
root.location.href = location;
} else {
opener.location.href = location;
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Save the gatekeeper image in your web page directory. -->
<!-- http://images.javascriptsource.com/gatekeeper/keeper.gif -->
<!-- click, hold, and 'Save Image As' Place image in directory. -->
<!-- STEP THREE: Add BACKGROUND tag to page document -->
<BODY BACKGROUND="http://your.domain.com/keeper.gif">
<!-- STEP FOUR: Copy this code into the BODY of document -->
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD ROWSPAN=2 WIDTH=50%>
<TD WIDTH=50% ALIGN=CENTER VALIGN=MIDDLE>
<FONT FACE="ARIAL" SIZE=2><B>Hold on there, buddy. You'll need a password to get in here. We're tryin' to keep out the riff-raff.</B></FONT><BR>
<TR>
<TD WIDTH=50% ALIGN=CENTER VALIGN=BOTTOM>
<CENTER>
<FORM NAME="testform">
<INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
<INPUT TYPE="button" NAME="button" Value="Submit Password" onClick="goForit(this.form)">
<P><FONT SIZE=1 FACE="COMIC SANS MS"><A HREF="http://passwords.javascriptsource.com/gatekeeper.html" TARGET="_blank"><B>The password is gatekeep-in</B></A></FONT>
</FORM>
</CENTER>
</TABLE>
<!-- Script Size: 1K (1715 bytes) -->
Title: Login CoderDetails: 6.50 KB May 29 1998Description: This is undoubtedly the best password protection JavaScript you'll ever find. Besides supporting multiple users, multiple passwords, and even multiple destination pages (after they successfully login), this script is presented in a very easy-to-use interface that you're sure to love! We *wish* we wrote this script, it's that good! (Note: Questions on this script should be directed to the author via email: dion@mailhub.omen.com.au)<!-- ONE STEP TO INSTALL LOGIN CODER:
1. Add the first code into the BODY of your HTML document -->
<!-- STEP ONE: Add the first code into the BODY of your HTML document -->
<BODY>
<center><table border=1>
<tr><form name=members><td rowspan=4>
<select name=memlist size=10 onChange="showmem(this.form)">
<!-- Original: Dion (dion@mailhub.omen.com.au) -->
<!-- Web Site: http://www.omen.com.au/~dion -->
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- "member name | password | destination pagename |" -->
<option selected value="John Smith|password|mainpage|">John Smith
<option value="Peter Jones|theirpwd|endpages|">Peter Jones
<option value="Sue Brown|asdfvcxz|nowheres|">Sue Brown
<option value="Sally West|zaqxswde|logintop|">Sally West
</select></td>
<td align=right>User:</td><td><input type=hidden value="0" name=entry>
<input type=text name=memname size=10 value="" onBlur="update(this.form)"></td></tr>
<tr><td align=right>Password:</td><td><input type=text name=password size=10 maxlength=8 onBlur="update(this.form)"> *</td></tr>
<tr><td align=right>Page Name:</td><td><input type=text name=pagename size=10 maxlength=8 onBlur="update(this.form)"><b>.html</b> *</td></tr>
<tr><td colspan=2 align=center>
<input type=button value="New User" onclick="addnew(this.form);">
<input type=button value="Delete User" onclick="delthis(this.form);">
<input type=button value="Show Coding" onclick="create(this.form);"></td></tr>
<tr><td colspan=3 align=center>
<input type=text size=60 name=message value="Note: Starred entries (*) must be exactly 8 letters! (a-z)">
<input type=hidden name=num value=1></td>
</form></tr>
</table>
<hr size=2 width=75%>
<form name=js><textarea cols=75 rows=10 name=scrpt wrap=virtual>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var params=new Array(4);
var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";
function check(form) {
which=form.memlist.selectedIndex;
choice = form.memlist.options[which].value+"|";
if (choice=="x|") {
alert("Please Select Your Name From The List");
return;
}
p=0;
for (i=0;i<3;i++) {
a=choice.indexOf("|",p);
params[i]=choice.substring(a,p);
p=a+1;
}
h1=makehash(form.pass.value,3);
h2=makehash(form.pass.value,10)+" ";
if (h1!=params[1]) {
alert("Incorrect Password!"); return; };
var page="";
for (var i=0;i<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<0) a+=26;
page+=alpha.substring(a,a+1); };
top.location=page.toLowerCase()+".html";
}
function makehash(pw,mult) {
pass=pw.toUpperCase();
hash=0;
for (i=0;i<8;i++) {
letter=pass.substring(i,i+1);
c=alpha.indexOf(letter,0)+1;
hash=hash*mult+c;
}
return(hash);
}
// End -->
</script>
</textarea>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var params=new Array(4);
var script=document.js.scrpt.value;
document.js.scrpt.value="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: dion@mailhub.omen.com.au\n\n*Honestly, we don't even totally understand this JavaScript!*";
var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";
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<5;i++) {
form.elements[i].value=params[i-2]; };
}
function splt(choice) {
p=0;
for (i=0;i<3;i++) {
a=choice.indexOf("|",p);
params[i]=choice.substring(a,p);
p=a+1;
}
}
function addnew(form) {
newmem=getfields(form);
var who=prompt("New User's Name:","");
form.memlist[form.memlist.length] = new Option(who, newmem, false, true);
if (navigator.appName=="Netscape") {
document.js.scrpt.value=script;
history.go(0);
}
else {
showmem(document.members);
}
}
function getfields(form) {
newmem="";
for (i=2;i<5;i++) {
newmem+=form.elements[i].value+"|"; };
for (i=3;i<5;i++) {
a=form.elements[i];
if (a.value.length!=8)
alert(a.name+" Requires 8 characters!");
for (k=0;k<8;k++) {
b=a.value.substring(k,k+1);
c=b.toUpperCase();
if (alpha.indexOf(c,0)<0) {
alert(a.name+" Must Use Letters A Through Z Only!"); break; };
}
}
return(newmem);
}
function delthis(form) {
if (confirm("Delete "+form.memname.value+"?")) {
form.memlist.options[form.entry.value-1]=null;
form.message.value=form.memname.value+" Deleted";
form.memlist.selectedIndex=0;
if (navigator.appName=="Netscape") {
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+"'s record was updated";
}
function create(form) {
var html="<center><form name=login>\n";
html+="<table border=1 cellpadding=3>\n\n";
html+="<!-- Original: Dion (dion@mailhub.omen.com.au) -->\n";
html+="<!-- Web Site: http://www.omen.com.au/~dion -->\n";
html+="<!-- This script and many more are available online from -->\n";
html+="<!-- The JavaScript Source!! http://javascriptsource.com -->\n\n";
html+='<tr><td colspan=2 align=center><font size="+2"><b>Members-Only Area!</b></font></td></tr>\n';
html+="<tr><td>Username:</td><td><select name=memlist>\n<option value='x'>";
for (j=0;j<form.memlist.length;j++) {
splt(form.memlist.options[j].value);
h1=makehash(params[1],3);
h2=makehash(params[1],10)+" ";
var page="";
for (var i=0;i<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+="\n<option value='"+params[0]+"|"+h1+"|"+page+"'>"+params[0];
};
html+="\n</select></td></tr>\n";
html+="<tr><td>Password:</td><td><input type=password size=10 maxlength=8 name=pass></td></tr>\n";
html+='<tr><td colspan=2 align=center><input type=button value="Login" onclick="check(this.form)"></td>\n';
html+="</tr>\n</table>\n</form>\n";
document.js.scrpt.value=html+script+"</center>";
}
function makehash(pw,mult) {
pass=pw.toUpperCase();
hash=0;
for (i=0;i<8;i++) {
letter=pass.substring(i,i+1);
c=alpha.indexOf(letter,0)+1;
hash=hash*mult+c;
}
return(hash);
}
// End -->
</script>
</center>
<!-- Script Size: 6.50 KB -->
Create your users, their passwords, and their destination pages using the form above.
Then, 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.
Questions about this script or how to put it on your site should be directed to it's author via email: dion@mailhub.omen.com.au
*Honestly, we don't even totally understand this JavaScript!*
Title: Multiple Users (Login Table)Details: 1.60 KB May 15 1998Description: Rather not have one password for access the Members-Only section of your site? Well, along comes this little JavaScript gem. You can set up a separate username and password for as many members as you want, and even give each a different page to go to after logging in!
<!-- 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 -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.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=="member1" && password=="password1") { window.location="page1.html"; 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("Invalid login!"); }
}
// End -->
</SCRIPT>
<!-- STEP TWO: Paste this code into the BODY of your HTML document -->
<BODY>
<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2"><b>Members-Only Area!</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value="Login!" onClick="Login()"></td></tr>
</table>
</form>
</center>
<!-- Script Size: 1.60 KB -->
Username : millenium
Password : millenium
Title: Multiple Users (Prompt)Details: 1.29 KB May 15 1998Description: This JavaScript is just like the previous Multiple Users one, but doesn't use a table interface to login. Instead, after clicking the Login! button, the script will ask them for their username and password, and then perform the password-protection. Very neat!<!-- TWO STEPS TO INSTALL MULTIPLE USERS PROMPT:
1. Add the first code into the HEAD of your HTML document
2. Copy the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Insert this code into the HEAD of your login HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
function LogIn(){
username=" ";
password=" ";
username=prompt("Username:","");
username=username.toLowerCase();
password=prompt("Password:","");
password=password.toLowerCase();
if (username) {
if (password) {
if (username=="member1") { if (password=="password1") { window.location="page1.html";} }
if (username=="member2") { if (password=="password2") { window.location="page2.html";} }
if (username=="member3") { if (password=="password3") { window.location="page3.html";} }
if (username=="member4") { if (password=="password4") { window.location="page4.html";} }
else { alert("Invalid login!") }
}
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Put this final code into the BODY of your HTML document -->
<BODY>
<center>
<form><input type=button value="Login!" onClick="LogIn()"></form>
</center>
<!-- Script Size: 1.29 KB -->
Title: Password ProDetails: 2.55 KB October 26 1997Description: This script uses a different approach to Password Protection. It still uses the password as the actual page, but it uses an encryption method that encrypts and checks the password. So if you fail to enter it correct after 3 times you go to a specific page (specified by the webmaster) and you don't get the annoying 404 page not found message as in other scripts. The password is password
<!-- THREE STEPS TO INSTALL PASSWORD PRO:
1. Configure your access code with the script above.
2. Put the designated coding into the HEAD of document
3. Copy the final code into the BODY of document -->
<!-- STEP ONE: Configure your access code with the script above! -->
<!-- STEP TWO: Copy this code into the HEAD of your document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Lefteris Haritou -->
<!-- Web Site: lef@writeme.com> www.geocities.com/~lef -->
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
var base= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9","A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z")
var pass=""
var z=23;
var y=28;
var f= new Array();
var K= new Array();
for (x=0; x<10; x++){
f[x]=x<<9
f[x]+=23
}
for (x=10; x<36; x++){
y=y<<1
v= Math.sqrt(y)
v = parseInt(v,16)
v+=5
f[x]=v
y++
}
for (x=36; x<62; x++){
z=z<<1
v= Math.sqrt(z)
v = parseInt(v,16)
v+=74
f[x]=v
z++
}
var iCounter = 3 //How many retries
function inc(){
iCounter--
if (iCounter > 0)
{
if (confirm("\nPassword is incorrect.\n\n\n\nRetry?"))
Check()
else
alert('Password incorrect.');
history.go(-1);
// You may use this element istead if you want.
// location.href='denied.html' //Cancel html file
}
else
alert('Your three tries are up. Access Denied.');
history.go(-1);
// You may use this element istead if you want.
// location.href='denied.html' // 3 times incorrect html file
}
function Check(){
pass = prompt("Enter your password.","")
if(pass==null || pass==""){
history.go(-1)}
else{
var lpass=(pass.length)+1
for (l=1; l<lpass; l++){
K[l]=pass.charAt(l)
}
var code=0;
for (y=1; y<lpass; y++){
for(x=0; x<62; x++){
if (K[y]==base[x]){
code+=f[x]
code*=y
}
}
}
<!-- STEP TWO: Put access code here! -->
if (code==174153441) // code==[your access code]
go()
else
inc()
}
}
function go(){
location.href=pass+".html";
}
// End -->
</SCRIPT>
<!-- STEP THREE: Put this coding into the BODY of your HTML document -->
<center>
<A HREF="javascript:Check()">Access the protected area.</A><BR>
<P>
</center>
<!-- Script Size: 2.55 KB -->
Title: Password PromptDetails: 0.58 KB August 13 1997Description: If a visitor wants to go a password protected page, they must first enter the correct password on the page with this script. This script will just take you them to [password entered].html This is a very good script if JavaScript is enabled and as long as you have an index.html file in your directory. As an added bonus, it's only 8 lines! The password is the protected filename without the .html ending. <!-- ONE STEP TO INSTALL PASSWORD PROMPT:
1. Put the designated coding into the BODY of your login HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your login HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
var password = ''
password=prompt('Please enter your password:','');
if (password != null) {
location.href= password + ".html";
}
// End -->
</SCRIPT>
<!-- Script Size: 0.58 KB -->
In KHeyli Bahale
Title: Three TriesDetails: 1.10 KB August 13 1997Description: If you want to 'protect' a site and don't have CGI access, you can try this JavaScript. Visitors get three tries to enter the correct password then they are refused entry. Note: The password is: password <!-- TWO STEPS TO INSTALL THREE TRIES:
1. Put the first code into the BODY of your HTML document
2. Change protectedpage.html to your protected filename -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
function password() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "password") {
alert('You Got it Right!');
// Change the following URL to your protected filename
window.open('protectedpage.html');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
}
if (pass1!="password" & testV ==3)
history.go(-1);
return " ";
}
document.write(password());
</SCRIPT>
<CENTER>
<FORM>
<input type="button" value="Enter Password Protected Area" onClick="password()">
</FORM>
</CENTER>
<!-- Script Size: 1.10 KB -->
::scrolling scripts ::
Title: Classic ScrollDetails: 1.35 KB * Uploaded August 23 1997Description: This is the classic scroll that you see EVERYWHERE! This script is also highly configurable (as are most in TJS). One more thing. Be aware that this effect does eventually get very annoying. <!-- TWO STEPS TO INSTALL CLASSIC SCROLL:
1. Paste the coding into the HEAD of your HTML document
2. Copy the onLoad event handler into the BODY tag -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
function scrollit(seed) {
var m1 = "Welcome to The JavaScript Source! ";
var m2 = "..... You can find all the scripts you need here! ";
var m3 = "......Enjoy ";
var m4 = "";
var msg=m1+m2+m3+m4;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->
<BODY onLoad="scrollit(100)">
<!-- Script Size: 1.35 KB -->
Title: Box ScrollDetails: 1.35 KB * Uploaded August 13 1998Description: This scrolls in a box from left to Right.
<script language="JavaScript">
<!-- begin
var max=0;
function textlist()
{
max=textlist.arguments.length;
for (i=0; i<max; i++)
this[i]=textlist.arguments[i];
}
tl=new textlist
(
"This is a message",
"Another one",
"And this will be the third",
"And the fourth is the last !"
);
var x=0; pos=0;
var l=tl[0].length;
function textticker()
{
document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
if(x==max) x=0; l=tl[x].length; } else
setTimeout("textticker()",50);
}
// end -->
</script>
<head>
<body onLoad="textticker()" >
<form name="tickform"><input type=text name="tickfield" size=40></form>
Title: Date & TimeDetails: 2.68 KB * Uploaded March 6 1998Description: Yes, this is another JavaScript scroll. But, unlike the others, this one has the date & time included at the front of the first message! It looks very professional!<!-- ONE STEP TO INSTALL DATE & TIME SCROLL:
1. Add the coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
var osd = " "
osd +="This is yet another JavaScript Scroll example ";
osd +="from the good folks at The JavaScript Source. ";
osd +="This one has the date and time at the front.";
osd +="Did you notice? It's coming around again, look! ";
osd +=" ";
var timer;
var msg = "";
function scrollMaster () {
msg = customDateSpring(new Date())
clearTimeout(timer)
msg += " " + showtime() + " " + osd
for (var i= 0; i < 100; i++){
msg = " " + msg;
}
scrollMe()
}
function scrollMe(){
window.status = msg;
msg = msg.substring(1, msg.length) + msg.substring(0,1);
timer = setTimeout("scrollMe()", 200);
}
function showtime (){
var now = new Date();
var hours= now.getHours();
var minutes= now.getMinutes();
var seconds= now.getSeconds();
var months= now.getMonth();
var dates= now.getDate();
var years= now.getYear();
var timeValue = ""
timeValue += ((months >9) ? "" : " ")
timeValue += ((dates >9) ? "" : " ")
timeValue = ( months +1)
timeValue +="/"+ dates
timeValue +="/"+ years
var ap="A.M."
if (hours == 12) {
ap = "P.M."
}
if (hours == 0) {
hours = 12
}
if(hours >= 13){
hours -= 12;
ap="P.M."
}
var timeValue2 = " " + hours
timeValue2 += ((minutes < 10) ? ":0":":") + minutes + " " + ap
return timeValue2;
}
function MakeArray(n) {
this.length = n
return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Janurary"
monthNames[2] = "February"
monthNames[3] = "March"
monthNames[4] = "April"
monthNames[5] = "May"
monthNames[6] = "June"
monthNames[7] = "July"
monthNames[8] = "August"
monthNames[9] = "Sept."
monthNames[10] = "Oct."
monthNames[11] = "Nov."
monthNames[12] = "Dec."
daysNames = new MakeArray(7)
daysNames[1] = "Sunday"
daysNames[2] = "Monday"
daysNames[3] = "Tuesday"
daysNames[4] = "Wednesday"
daysNames[5] = "Thursday"
daysNames[6] = "Friday"
daysNames[7] = "Saturday"
function customDateSpring(oneDate) {
var theDay = daysNames[oneDate.getDay() +1]
var theDate =oneDate.getDate()
var theMonth = monthNames[oneDate.getMonth() +1]
var dayth="th"
if ((theDate == 1) || (theDate == 21) || (theDate == 31)) {
dayth="st";
}
if ((theDate == 2) || (theDate ==22)) {
dayth="nd";
}
if ((theDate== 3) || (theDate == 23)) {
dayth="rd";
}
return theDay + ", " + theMonth + " " + theDate + dayth + ","
}
scrollMaster();
// End -->
</SCRIPT>
<!-- Script Size: 2.68 KB -->
Title: EditorDetails: 1.89 KB * Uploaded August 23 1997Description: This is a very cool way to show you a little bit better how Javascript works. Go ahead. You can manipulate several different variables and then see the effects on the scroll box. Have fun! <!-- THREE STEPS TO INSTALL EDITOR:
1. Paste the coding into the HEAD of your HTML document
2. Copy the onLoad event handler into the BODY tag
3. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
var id,pause=0,position=0;
function banner() {
var i,k,msg=document.form1.message.value;
k=(66/msg.length)+1;
for(i=0;i<=k;i++) msg+=" "+msg; document.form2.banner.value=msg.substring(position,position+50);
if(position++==document.form1.message.value.length)
position=0;
id=setTimeout("banner()",1000/document.form1.speed.value);
}
function action() {
if(!pause) {
clearTimeout(id);
pause=1;
}
else {
banner();
pause=0;
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->
<BODY onLoad="banner()">
<!-- STEP THREE: Put this code into the BODY of your HTML document -->
<CENTER>
<FORM name="form1">
<TABLE border="3">
<caption>Edit box</caption>
<tr><td align="right">Message:</td>
<td><input type="text" name="message" value="This is a scroll - a text box scroll. " size="50"></td></tr>
<tr><td align="right">Speed:</td>
<td><input type="text" name="speed" value="10" size="5"></td></tr>
<tr><td align="right">Change:</td>
<td><center><input type="button" value=" Click here to make changes take effect" onclick="clearTimeout(id);position=0;banner()"></center></td></tr>
</TABLE>
</FORM>
<p>
<hr size="4" width="40%">
<p>
<FORM name="form2">
<input type="text" name="banner" size="50"><br>
<input type="hidden" value=" Start Banner " onclick="action()">
</FORM>
</CENTER>
<!-- Script Size: 1.89 KB -->
Title: FlasherDetails: 0.83 KB * Uploaded August 23 1997Description: This script simply flashes (hence the name) a message on and off on your statusbar. This script probably got your attention better than the Classic Scroll but, is not used as much. The Flasher is just not as well known as the Classic Scroll. <!-- TWO STEPS TO INSTALL FLASHER:
1. Paste the coding into the HEAD of your HTML document
2. Copy the onLoad event handler into the BODY tag -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
var message="Total JavaScripts 99 is your JavaScript solution!! ";
var speed=400;
var visible=0;
function Flash() {
if (visible == 0) {
window.status=message;
visible=1;
} else {
window.status="";
visible=0;
}
setTimeout('Flash()', speed);
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->
<BODY onLoad="Flash()">
<!-- Script Size: 0.83 KB -->
Title: Flashing Banner - Next StepDetails: 0.83 KB * August 13 1998Description: This flashes four different message in a titlebar. You can set the time and delay between each message. <html>
<head>
<title>Rotating Text Banner</title>
<script language="JavaScript">
function update(msg) {
var pad_str="";
n = msg.length;
if(n<81) {
pad = (81-n)/2;
for(var i=0; i<pad; i++) {
pad_str+=" ";
}
}
CurrentMsg = pad_str + msg;
document.messages.field.value = CurrentMsg;
clearTimeout(timer);
timer = setTimeout("idleMsg()",5000);
}
function MakeArray(n) {
this.length=n;
for(var i = 1; i<= n; i++) {
this[i] = "";
}
return(this);
}
var index = 1;
var notice_num = 4;
var notices = new MakeArray(notice_num);
notices[1] = "Welcome to Total JavaScripts 99!";
notices[2] = "There are hundreds of scripts...";
notices[3] = "With examples and help.";
notices[4] = "Tell all of your friends about this CD-Rom!";
var timer = setTimeout('idleMsg()',0);
function idleMsg() {
update(notices[index++]);
if(index>notice_num) { index=1; }
}
</script>
</head>
<body>
<form name="messages" onSubmit="return false">
<div align="center"><center><p><input type="text" name="field" size="45" height="5" value
style="font-weight: bold; font-family: sans-serif; background-color: rgb(255,255,255); color: rgb(255,0,0); border: medium none rgb(255,255,255)">
</p>
</center></div>
</form>
</body>
</html>
Title: MarqueeContributor URL: http://www.geocities.com/SiliconValley/Horizon/5235Details: 1.00 KB * Uploaded March 5 1998Description: (Internet Explorer preferred) This JavaScript scrolls information back and forth across a page - the message appears to float back and forth! If you don't have Internet Explorer, it'll just show the message on the screen. Works great
<!-- ONE STEP TO INSTALL MARQUEE SCROLL:
1. Paste the coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<html>
<head>
<title>E:\scrolls\flasher_.htm</title>
</head>
<body>
<script LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Original: http://www.geocities.com/SiliconValley/Horizon/5235 -->
<!-- Begin
mesg = "Total JavaScript 99, another marvelous use of bandwidth - Next Step!";
isNS = (navigator.appName == "Netscape")
isIE = (navigator.appName == "Microsoft Internet Explorer")
text = ("<i><font size=2>"+mesg+"</font></i>")
if (isNS) {
document.write("<blink>" + text + "</blink>")}
else if (isIE) {
document.write("<MARQUEE BEHAVIOR=ALTERNATE DIRECTION=RIGHT>" + text + "</MARQUEE>")}
// End -->
</script>
<NOSCRIPT>
<i><font size="2">
<p>The JavaScript Source, another marvelous use of bandwidth!</font></i> </NOSCRIPT> <!-- Script Size: 1.00 KB --> </p>
</body>
</html>
Title: Marquee 2Contributor URL: Next StepDetails: 1.00 KB * Uploaded March 5 1998Description :This JavaScript scrolls information across a page.
<SCRIPT LANGUAGE="JavaScript">
<!-- // Text box marquee Modified by Prasad Mapatuna
// CHANGE THESE TO ALTER THE SCROLL SPEED
var timerID=null
var run=false
count = 0 // counter of cycles
ScrollSpeed = 200; // milliseconds between scrolls
ScrollChars = 1; // chars scrolled per time period
function Stop()
{
if(run) clearRimeout(timerID)
run=false
}
function Start()
{
Stop();
Marquee()
}
function Marquee()
{
var msg = document.forms[0].message.value;
var tmp = msg.substring(0,ScrollChars);
msg = msg.substring(ScrollChars) + tmp;
document.forms[0].message.value = msg;
if(count<200)
{
timerID = setTimeout('Marquee()',ScrollSpeed);
run= true;
count++;
}
}
<!-- end -->
</SCRIPT>
<BODY BGCOLOR="#######" onLoad="Start()">
<FORM>
<INPUT NAME="message" SIZE=50 VALUE="Scrolling Scrolling Scrolling. Keep them letters Scrolling. ">
</FORM>
Title: One LetterDetails: 1.67 KB * Uploaded April 16 1998Description: This script will scroll one letter at a time of your message until the entire message has been displayed! Very neat!<!-- TWO STEPS TO INSTALL ONE LETTER SCROLL:
1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler to the BODY tag -->
<!-- STEP ONE: Add this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Pun Man Kit <mkpunnl@netvigator.com> -->
<!-- Web Site: http://home.netvigator.com/~mkpunnl -->
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
function scroll(jumpSpaces,position) {
var msg = "Another JavaScript Example! Do you like it?"
var out = ""
if (killScroll) {return false}
for (var i=0; i<position; i++){
out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++) {
out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ') {
position++ }
jumpSpaces = 100-position
}
else if (jumpSpaces > 3) {
jumpSpaces *= .75}
else {
jumpSpaces--}
if (position != msg.length) {
var cmd = "scroll(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,5);
}
else {
scrolling = false
return false}
return true;
}
function startScroller() {
if (scrolling)
if (!confirm('Re-initialize snapIn?'))
return false
killScroll = true
scrolling = true
var killID = window.setTimeout('killScroll=false',6)
scrollID = window.setTimeout('scroll(100,0)',10)
return true
}
var scrollID = Object
var scrolling = false
var killScroll = false
// End -->
</SCRIPT>
</HEAD>
<!-- STEP TWO: Add the onLoad event handler to the BODY tag -->
<BODY onLoad="startScroller()">
<!-- Script Size: 1.67 KB -->
Title: Stop Scroll Clear Status BarDetails: 1.30 KB * Uploaded August 23 1997Description: Usually when someone moves his mouse over a link on your page you will get that ennoying message at your status bar telling you that that link is a short cut to some document at www.fake.com. Now, to get rid of that you can use the well known "onMouseOver="window.status" " in the anchor. But that text does not disappear until you move your mouse over another link !!!! Thanks to "Syntax Error" for this script.
Here's his explanation:
Hi There,
Usually when someone moves his mouse over a link on your page you will get that ennoying message at your status bar telling you that that link is a short cut to some document at www.fake.com. Now, to get rid of that you can use the well known "onMouseOver="window.status" " in the anchor. But that text does not disappear until you move your mouse over another link !!!
Well, to get rid of that text in your status bar put the following in your <head>&</head>tags
SCRIPT:
<script language="JavaScript">
<!-- Hide for the non capable
function link(txt)
{
window.status = txt;
setTimeout("erase()",2000);
}
function erase()
{
window.status="";
}
// so far for the hiding part -->
</script>
Title: TextboxDetails: 1.30 KB * Uploaded August 23 1997Description: This is another version of the infamous scroll. Although, this one scrolls your information in a text box and is far less 'annoying' that most of the status bar scrollers. Just imagine what you can draw attention to! Anything! <!-- TWO STEPS TO INSTALL TEXT BOX:
1. Paste the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
var display_text = "Here is the common scroll - except, "
+ " this one runs in a text box rather than the status bar. "
+ " There is more cool stuff like this on TJS !! "
var display_text;
var place;
var meter;
var out = " ";
var place = 50;
function scroll_text() {
for (meter = 0; meter < place; meter++) {
out += " "}
if (place >= 0)
out += display_text
else out = display_text.substring(-place,display_text.length)
document.scroll_form.field.value = out
out = " "
place--
if (place < -(display_text.length)) {
place = 50
}
setTimeout('scroll_text()',100)
}
// End -->
</SCRIPT>
<!-- STEP TWO: Put this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<FORM NAME="scroll_form">
<input type="button" name="button_one" value="Start" onClick="scroll_text()">
<input type="text" name="field" size="50">
</FORM>
</CENTER>
<!-- Script Size: 1.30 KB -->
Title: Text EffectContributor: Neal Cook (hapaboy@mindless.com)Contributor URL: http://www.geocities.com/SouthBeach/Palms/6999Details: 3.83 KB * Uploaded June 12 1998Description: Essentially a multi-function scroller, this script does some really amazing stuff. It takes your message line and scrolls it left and right and .... Just check it out!<!-- ONE STEP TO INSTALL TEXT EFFECT:
1. Add the first code to the BODY of your HTML document -->
<!-- STEP ONE: Add the first code to the BODY of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Neal Cook (hapaboy@mindless.com) -->
<!-- Web Site: http://www.geocities.com/SouthBeach/Palms/6999 -->
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
var message=" The JavaScript Source!!";
var spc=10;
var speedisplay=50;
var times=2;
var rows=5;
var cols=40;
var stopbutton="yes"; // yes or no
var stopbuttonvalue=" STOP ";
var startvalue=" START ";
var len=spc*2;
var text=message;
var i;
var stop=false;
var stoppedisplay;
for (i=0;i<spc;i++) {
text=text+" ";
}
function array(n) {
this.length = n
for (i=1; i <= n; i++) {
this[i] ="";
}
return this;
}
document.writeln('<form name="F">')
document.writeln('<textarea rows='+rows+' cols='+cols+' name="display" wrap=soft></textarea>')
if (stopbutton == "yes") {
document.writeln('<br><input type=button value="'+stopbuttonvalue+'" onClick="stopstart()" name=stopit>');
}
document.writeln('</form>')
var l=text.length;
var ll=message.length;
var lb=new array(l)
var lr=new array(spc*2+1)
var lg=new array(ll)
var lk=new array(ll)
lb[0]=text;lb[l]=text;lr[0]=message;lg[0]=message;
for (j=1;j<l;j++) {
lb[j]=lb[j-1].substring(1, l)+lb[j-1].charAt(0);
}
lr[spc*2]=message;
for (i=1;i<=spc;i++) {
lr[i]=" "+lr[i-1]
}
for (i=spc*2-1;i>=spc+1;i--) {
lr[i]=" "+lr[i+1]
}
var ll=message.length;
for (j=1;j<ll;j++) {
for (i=lg[j-1].length-2;i>=0;i--) {
lg[j]=lg[j-1].charAt(i)+lg[j];
}
}
lk[ll]=message;
for (j=ll-1;j>=0;j--) {
lk[j]=lk[j+1].substring(1, l);
}
var lge="";
var lbe="";
var rle="";
for (i=0;i<rows;i++) {
lge=lge+lg[i]+unescape('%0D%0A');
}
for (i=0;i<rows;i++) {
lbe=lbe+lb[l-i]+unescape('%0D%0A');
}
for (i=1;i<=rows;i++) {
rle=rle+lr[spc*2-i]+unescape('%0D%0A');
}
var c=1;
var i=ll;
var j=0;
var f=0;
function lgf() {
if(stop==false) {
if(i>ll) {
j=0;
i=i-2;
}
if(i==0&&j==0) {
c++;
j=1;
}
if(j!=0) {
document.F.display.value=lg[i]+unescape('%0D%0A')+document.F.display.value;
i++;
}
if(j==0) {
document.F.display.value=lg[i]+unescape('%0D%0A')+document.F.display.value;
i--;
}
if(c<=times) {
setTimeout("lgf()",speedisplay);
}
else {
document.F.display.value=lge;
i=0;
j=0;
c=0;
t();
}
}
}
function t() {
if(stop==false) {
if(i>l) {i=1};
document.F.display.value=lb[i]+unescape('%0D%0A')+document.F.display.value;
i++;
j++;
if(j<=l*times) {
setTimeout("t()",speedisplay)}else{document.F.display.value=lbe;
i=0;
j=0;
rl();
}
}
}
function rl() {
if (stop==false) {
if(i>=spc*2) {i=0};
document.F.display.value=lr[i]+unescape('%0D%0A')+document.F.display.value;
i++;
j++;
if(j<len*times) {setTimeout("rl()",speedisplay)}else{document.F.display.value=rle;i=ll-1;j=0;trans()}
}
}
function trans() {
if(stop==false) {
document.F.display.value=lk[i]+unescape('%0D%0A')+document.F.display.value;
i--;
if(i!=1) {
setTimeout("trans()",speedisplay)
}
else {
i=ll;
lgf();
}
}
}
function stopstart() {
stoppedisplay=stop;
if(stoppedisplay==false) {
stop=true;document.F.stopit.value=startvalue;
}
if(stoppedisplay==true) {
stop=false;document.F.stopit.value=stopbuttonvalue;
document.F.display.value="";
i=11;
j=0;
c=0;
lgf();
}
}
if (rows>spc||rows>ll) {
alert("ERROR!\nrows can NOT be more that spaces or message length!!!!")
}
if (spc+ll>cols) {
alert("ERROR!\ncols(coloums) can NOT be less that the message length + spacing length")
}
if (rows<=spc&&rows<=ll&&spc+ll<=cols) {
lgf();
}
// End -->
</script>
<!-- Script Size: 3.83 KB -->
The JavaScript Sourc
The JavaScript Sour
The JavaScript Sou
The JavaScript So
The JavaScript S
The JavaScript
The JavaScript
The JavaScrip
The JavaScri
Title: Vertical Scroll Page DownDetails: 0.83 KB * Uploaded April 16 1998Description: This is not like the other Scroller scripts in this category - thise one scrolls the page vertically! (up and down!!) It's really cool!<!-- TWO STEPS TO INSTALL VERTICAL SCROLL:
1. Paste the coding into the HEAD of your HTML document
2. Add the last code to the BODY of your HTM document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Pun Man Kit <mkpunnl@netvigator.com> -->
<!-- Web Site: http://home.netvigator.com/~mkpunnl -->
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
function scrollit() {
for (I=1; I<=750; I++){
parent.scroll(1,I)
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Put this code into the BODY of your HTML document -->
<BODY><CENTER><FORM><input type=button value="Scroll Page" onClick="scrollit()"></FORM></CENTER>
<!-- Script Size: 0.83 KB -->
Title: Vertical BoxesContributor: Michael Tartaglia (stonedstan@hotmail.com)Contributor URL: http://www.geocities.com/SiliconValley/Horizon/5235Details: 1.53 KB * Uploaded August 24 1998Description: This is probably the most interesting scroll that doesn't use the browser's status bar (the bar at the bottom of the screen) or a text box on the page. Instead, it scrolls vertically up and down multiple text boxes! Take a look to see what we mean! <!-- ONE STEP TO INSTALL VERTICAL BOXES:
1. Add the first code to the BODY of your HTML document -->
<!-- STEP ONE: Add the first code to the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Michael Tartaglia (stonedstan@hotmail.com) -->
<!-- Web Site: http://www.geocities.com/SiliconValley/Horizon/5235 -->
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
msg ="Hello, Look @ my vertical scroller!";
align="center";
speed=250;
up=true;
spas=" ";
for (a=0;a<=12;a++) {spas+=" "}
msg=spas+msg+spas;
j=eval(-1);
stop=msg.length;
document.write("<form name='form'><table border=0 cellspacing=0 "
+"cellpadding=0 align="+align+">");
for (i=1;i<=13;i++) {
document.write("<tr><td><input type=text name=\"box"+i+"\" size=1>");
document.write("</td></tr>");
}
document.write("</table></form>");
function scrollIt() {
j++;
with (document.form) {
if ((j+12) <= stop) {
box1.value = msg.charAt(j);
box2.value = msg.charAt(j+1);
box3.value = msg.charAt(j+2);
box4.value = msg.charAt(j+3);
box5.value = msg.charAt(j+4);
box6.value = msg.charAt(j+5);
box7.value = msg.charAt(j+6);
box8.value = msg.charAt(j+7);
box9.value = msg.charAt(j+8);
box10.value = msg.charAt(j+9);
box11.value = msg.charAt(j+10);
box12.value = msg.charAt(j+11);
box13.value = msg.charAt(j+12);
} else {
j=0;
}
}
setTimeout("scrollIt()",speed);
}
scrollIt();
// End -->
</SCRIPT>
<!-- Script Size: 1.53 KB -->
Title: Write And SlideDetails: 1.09 KB * Uploaded August 23 1997Description: This again is a very simple scroll. It keeps adding letters one by one across the status bar until the entire message is written out. Then, it quickly scrolls the entire to the left, until it is disappears from the status bar. Then the whole process starts again... Just look at the statusbar to see what I mean. Not very spectacular, but nice... <!-- TWO STEPS TO INSTALL WRITE AND SLIDE:
1. Paste the coding into the HEAD of your HTML document
2. Copy the onLoad event handler into the BODY tag -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
var Message="Yet another simple scroll from TJS! You could have done it!!";
var place=1;
function scrollIn() {
window.status=Message.substring(0, place);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollOut()",300);
} else {
place++;
window.setTimeout("scrollIn()",50);
}
}
function scrollOut() {
window.status=Message.substring(place, Message.length);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollIn()", 100);
} else {
place++;
window.setTimeout("scrollOut()", 50);
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->
<BODY onLoad="scrollIn()">
<!-- Script Size: 1.09 KB -->
::status b ar Effects ::
Title: Flashing Status Bar - Next StepDetails: 1.35 KB * October 15 1998Description: This allows the text on your Status Bar to Flash! One message only.<script>
var yourwords = "YOUR MESSAGE GOES HERE";
var speed = 300;
var control = 1;
function flash()
{
if (control == 1)
{
window.status=yourwords;
control=0;
}
else
{
window.status="";
control=1;
}
setTimeout("flash()",speed);
}
</script>
<!--Now put this inside your body code.-->
<html>
<head>
<title>New Page 3</title>
</head>
<body onLoad="flash()">
</body>
</html>
Title: Rollover Images (Buttons) That Change Status Bar- Next StepDetails: .85 KB * August 13 1998Description: This allows you to have rollover button with your own graphic images for the button and will change the status bar when the mouse goes over the button!
<!--This following lines of code go into your <head></head> tag. -->
<script language="JavaScript">
var NN3 = false;
image1= new Image();
image1.src = "IMAGE FILE OFF";
image1on = new Image();
image1on.src = "IMAGE FILE ON";
image2= new Image();
image2.src = "IMAGE FILE OFF";
image2on = new Image();
image2on.src = "IMAGE FILE ON";
function on3(name) {
document[name].src = eval(name + "on.src");
}
function off3(name) {
document[name].src = eval(name + ".src");
}
NN3 = true;
function on(name) {
if (NN3) on3(name);
}
function off(name) {
if (NN3) off3(name);
}
function a(txt) {
self.status = txt
}
function b() {
self.status = ""
}
</script>
<!--Now put this any where in your page <Body>-->.
<a href="YOUR LINK" onmouseover="on('image1'); a('STATUS BAR MESSAGE GOES HERE');return true;" onmouseout="off('image1'); b();"><img src="IMAGE FILE OFF" border="0" name="image1"></a><br>
<a href="YOUR LINK" onmouseover="on('image2'); a('STATUS BAR MESSAGE GOES HERE');return true;" onmouseout="off('image2'); b();"><img src="IMAGE FILE OFF" border="0" name="image2"></a>
<!--The first thing that needs to be done is the change the IMAGE FILE ON (in the top script) and the IMAGE OFF (in the top and bottom script) and STATUS BAR MESSAGE GOES HERE. Now if you want add more images, you'll have to adjust the top script by adding this additional line. (this is an example of how to add a third image image)This goes after the lines that look identical.-->
Title: Image Maps that change Status Bar - Next StepDetails: 1.68 KB * October 6 1998Description: This allows you to control the status bar when the mouse moves over the hot spots on your image map.<!--Just add this little piece of code after your href tag-->
onMouseOver="window.status='Click Here to Go Back One Page';return true" onMouseOut="window.status=' '; return true">
<!--example below-->
<AREA SHAPE="rect" COORDS="0,0,62,30" href="jsmain.htm" onMouseOver="window.status='MESSAGE #1';return true">
Title: Clock on the Status Bar - Next StepDetails: 1.68 KB * October 6 1998Description: This shows a clock with the time on the Status Bar.
<html>
<head>
<title>Digital Clock - Status Bar</title>
<script Language="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
window.status = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock () {
stopclock();
showtime();
}
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="startclock()">
</body>
</html>
Title: Clock and Date on the Status Bar - Next StepDetails: 1.68 KB * October 6 1998Description: This shows a clock with date and the time on the Status Bar
<HTML>
<HEAD>
<TITLE>Clock And Date</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide JavaScript From Java-Impaired Browsers
var timerID = null
var timerRunning = false
function MakeArray(size)
{
this.length = size;
for(var i = 1; i <= size; i++)
{
this[i] = "";
}
return this;
}
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false
}
function showtime () {
var now = new Date();
var year = now.getYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var day = now.getDay();
Day = new MakeArray(7);
Day[0]="SUN";
Day[1]="MON";
Day[2]="TUE";
Day[3]="WED";
Day[4]="THU";
Day[5]="FRI";
Day[6]="SAT";
var timeValue = "";
timeValue += (Day[day]) + " ";
timeValue += ((month < 10) ? " 0" : " ") + month + "-";
timeValue += date + "-" + year + " ";
timeValue += ((hours <= 12) ? hours : hours - 12);
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
timeValue += (hours < 12) ? " AM" : " PM";
window.status = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true
}
function startclock () {
stopclock();
showtime()
}
// End Hiding -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startclock();">
Title: Image Status - Next StepDetails: 1.19 KB * August 23 1998Description: This changes the Status Bar when the mouse is moved over a static graphic image or button.<html>
<head>
<title></title>
<script language="JavaScript">
<!-- Hide the script from old browsers --
function a(txt) {
self.status = txt
}
function b() {
self.status = ""
}
// --End Hiding Here -->
</script>
<!--Now put this part in the body of your document and edit the appropiate information. You can copy and paste this line for as many links that you have.-->
</head>
<body>
<a HREF="rollover.htm" onMouseOver="a('STATUS BAR MESSAGE GOES HERE');return true"
onMouseOut="b()">
<p><img SRC="_view1.gif" border="0" width="158" height="29"> </a></p>
</body>
</html>
Title: One Time Sliding Status Message - Next StepDetails: 0.83 KB * October 23 1998Description: This script shows a sliding message on your status bar just one time then stops.<html>
<head>
<title>Cool Status Bar Scroller</title>
<script LANGUAGE="JavaScript">
<!--
function snapIn(jumpSpaces,position) {
var msg = "YOUR MESSAGE GOES HERE!!!"
var out = ""
if (killScroll) {return false}
for (var i=0; i<position; i++){
out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++) {
out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ') {
position++ }
jumpSpaces = 100-position
}
else if (jumpSpaces > 3) {
jumpSpaces *= .75}
else {
jumpSpaces--}
if (position != msg.length) {
var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,5);
}
else {
scrolling = false
return false
}
return true
}
function snapSetup() {
if (scrolling)
if (!confirm('Re-initialize snapIn?'))
return false
killScroll = true
scrolling = true
var killID = window.setTimeout('killScroll=false',6)
scrollID = window.setTimeout('snapIn(100,0)',10)
return true
}
var scrollID = Object
var scrolling = false
var killScroll = false
// -->
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="snapSetup()">
</body>
</html>
Title: Multi Message - Next StepDetails: 1.23 KB * October 23 1998Description: This script pops up different messages in the Status Bar. You can put as any you want. It displays them by just poping up one after the other.<html>
<body bgcolor=ffffff>
<head>
<script>
// This script came from Web-Development.Com JavaScript Site
// Located at http://www.web-development.com/
message = new Array(5);
message[0] = "This is a sample of a Scrolling Status";
message[1] = "The code for this is in the bottom right frame ";
message[2] = "Hope this is what you wanted.";
message[3] = "Come back to see us soon.";
message[4] = "Don\'t forget to bookmark us";
var showmsg = true;
function nextMessage() {
if (!showmsg) {
window.setTimeout("nextMessage()",5000);
showmsg = true;
return;
}
index = Math.floor(message.length * Math.random());
window.status = message[index];
window.setTimeout("nextMessage()",5000);
}
nextMessage();
</script>
</head>
<body bgcolor=ffffff>
<font color="000080">
<center>
Look in the status bar for a sample of this code
</center>
</font>
</body>
</html>
Title: Random Messages Sliding Status Bar - Next StepDetails: 1.00 KB * October 5 1998Description: This displays a sliding message on your status bar, The key to this is that you can have different messages appear on the status bar.<html>
<head>
<title> Random Status Bar Scroller </title>
<script language="JavaScript">
<!-- Hide this script from old browsers --
var speed = 10
var pause = 1500
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "Welcome to JavaScript Made Easy!!"
ar[1] = "I hope you enjoy my page and get a lot out of it!"
ar[2] = "Hey look it's another message!"
ar[3] = "When eill this stop????!!!!"
var message = 0
var state = ""
clearState()
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false
}
function startBanner() {
stopBanner()
showBanner()
}
function clearState() {
state = ""
for (var i = 0; i < ar[message].length; ++i) {
state += "0"
}
}
function showBanner() {
if (getString()) {
message++
if (ar.length <= message)
message = 0
clearState()
timerID = setTimeout("showBanner()", pause)
bannerRunning = true
} else {
var str = ""
for (var j = 0; j < state.length; ++j) {
str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " "
}
window.status = str
timerID = setTimeout("showBanner()", speed)
bannerRunning = true
}
}
function getString() {
var full = true
for (var j = 0; j < state.length; ++j) {
if (state.charAt(j) == 0)
full = false
}
if (full)
return true
while (1) {
var num = getRandom(ar[message].length)
if (state.charAt(num) == "0")
break
}
state = state.substring(0, num) + "1" + state.substring(num + 1, state.length)
return false
}
function getRandom(max) {
return Math.round((max - 1) * Math.random())
}
// -- End Hiding Here -->
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="startBanner()">
</body>
</html>
Title: Link that Display Message on Status Bar - Next StepContributor URL: Next StepDetails: 1.00 KB * March 5 1998Description :This JavaScript displays a message on the status bar when the mouse is passed over a text link.
<!--This type of status bar description goes on and off whenever your mouse is on the link. Copy the first part of this code into your <head></head> tag. -->
<script language="JavaScript">
<!-- Hide the script from old browsers --
function a(txt) {
self.status = txt
}
function b() {
self.status = ""
}
// --End Hiding Here -->
</script>
<!--Now put this part in the body of your document and edit the appropiate information. You can copy and paste this line for as many links that you have.-->
<A HREF="YOUR LINK" onMouseOver="a('STATUS BAR MESSAGE GOES HERE');return true"
onMouseOut="b()">LINK DESCRIPTION</a>
Title: Link that Display Message on Status Bar (TIMED) - Next StepDetails: 1.67 KB * April 16 1998Description: This JavaScript displays a message on the status bar when the mouse is passed over a text link but you can control how long the message will be displayed <html>
<head>
<title>Rick</title>
<!--This type of status bar description goes on and stays on for a specified amount of time whenever your mouse is on the link. Copy the first part of this code into your <head></head> tag. -->
<script language="JavaScript">
<!-- Hide the script from old browsers --
function windowon(txt){
window.status = txt;
setTimeout("windowoff()",2200);
}
function windowoff(){
window.status="";
}
// --End Hiding Here -->
</script>
<!--Now put this part in the body of your document and edit the appropiate information. You can copy and paste this line for as many links that you have.-->
</head>
<body>
<a HREF="rollover.htm" onMouseOver="windowon('Ricks Pearl Jam Page');return true">
<p>Example for 2 seconds</a><br>
</p>
</body>
</html>
Title: Scrolling Status Bar - Next StepDetails: 1.30 KB * August 23 1998Description: This is the typical status bar the scrolls a message across it!<html>
<head>
<title>Scrolling Message</title>
<script language="JavaScript">
<!-- Hide the script from old browsers --
function scrollit(seed)
{
var m1 = " Next Step Brings you the Hottest Java Scripts - Total JavaScripts 99 ";
var msg=m1; var out = " ";
var c = 0;
if (seed > 100)
{
seed--;
var cmd="scrollit(" + seed + ")";
timerTwo=window.setTimeout(cmd,7);
}
else
if (seed <= 100 && seed > 0)
{
for (c=0 ; c < seed ; c++)
{
out+=" ";
}
out+=msg;
seed--;
var cmd="scrollit(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,7);
}
else if (seed <= 0)
{
if (-seed < msg.length)
{
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="scrollit(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,7);
}
else
{
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}
// --End Hiding Here -->
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="timerONE=window.setTimeout('scrollit(100)',500)">
</body>
</html>
Title: Sliding Status BarDetails: 1.30 KB * August 23 1998Description: This is another version of the sliding Status Bar.<!--Copy this code into your <head></head> tags. -->
<script LANGUAGE="JavaScript">
<!--
function snapIn(jumpSpaces,position) {
var msg = "YOUR MESSAGE GOES HERE!!!"
var out = ""
if (killScroll) {return false}
for (var i=0; i<position; i++){
out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++) {
out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ') {
position++ }
jumpSpaces = 100-position
}
else if (jumpSpaces > 3) {
jumpSpaces *= .75}
else {
jumpSpaces--}
if (position != msg.length) {
var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,5);
}
else {
scrolling = false
return false
}
return true
}
function snapSetup() {
if (scrolling)
if (!confirm('Re-initialize snapIn?'))
return false
killScroll = true
scrolling = true
var killID = window.setTimeout('killScroll=false',6)
scrollID = window.setTimeout('snapIn(100,0)',10)
return true
}
var scrollID = Object
var scrolling = false
var killScroll = false
// -->
</script>
<!--Now put this inside your body code. -->
<html>
<head>
<title>E:\javascripts\statusbars\changeimagestatus_.htm</title>
</head>
<body onLoad="snapSetup()">
</body>
</html>
Title: Type Writer Status Bar Multiple Messages - Next StepDetails: 1.83 KB * June 12 1998Description: This is a great Status Bar that prints out your messages as is they were being typed out. The key is you can have multiple messages.<html>
<head>
<title>Type Writer Status Bar</title>
<script LANGUAGE="JavaScript">
<!--
var speed = 50 // decrease value to increase speed (must be positive)
var pause = 2000 // increase value to increase pause
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "Welcome... "
ar[1] = "You have entered my mighty house of JavaScript... "
ar[2] = "Take what you want... "
ar[3] = "But beware of the guard dogs!!!! "
var currentMessage = 0
var offset = 0
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false
}
function startBanner() {
stopBanner()
showBanner()
}
function showBanner() {
var text = ar[currentMessage]
if (offset < text.length) {
if (text.charAt(offset) == " ")
offset++
var partialMessage = text.substring(0, offset + 1)
window.status = partialMessage
offset++
timerID = setTimeout("showBanner()", speed)
bannerRunning = true
} else {
offset = 0
currentMessage++
if (currentMessage == ar.length)
currentMessage = 0
timerID = setTimeout("showBanner()", pause)
bannerRunning = true
}
}
// -->
</script>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080"
onLoad="startBanner()">
</body>
</html>
::User - Details ::
Title: Browser InformationDetails: 1.34 KB June 12 1998Description: This script does a great job of displaying information about your web browser including version, your computer's platform, if Java is enabled, how many pages you've visited, and screen resolution. Take a look, it's pretty cool.<!-- ONE STEP TO INSTALL BROWSER INFORMATION:
1. Add the first code to the BODY of your HTML document -->
<!-- STEP ONE: Add the first code to the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
var xy = navigator.appVersion;
xz = xy.substring(0,4);
document.write("<center><table border=1 cellpadding=2><tr><td>");
document.write("<center><b>", navigator.appName,"</b>");
document.write("</td></tr><tr><td>");
document.write("<center><table border=1 cellpadding=2><tr>");
document.write("<td>Code Name: </td><td><center>");
document.write("<b>", navigator.appCodeName,"</td></tr>");
document.write("<tr><td>Version: </td><td><center>");
document.write("<b>",xz,"</td></tr>");
document.write("<tr><td>Platform: </td><td><center>");
document.write("<b>", navigator.platform,"</td></tr>");
document.write("<tr><td>Pages Viewed: </td><td><center>");
document.write("<b>", history.length," </td></tr>");
document.write("<tr><td>Java enabled: </td><td><center><b>");
if (navigator.javaEnabled()) document.write("sure is!</td></tr>");
else document.write("not today</td></tr>")
document.write("<tr><td>Screen Resolution: </td><td><center>");
document.write("<b>",screen.width," x ",screen.height,"</td></tr>");
document.write("</table></tr></td></table></center>");
// End -->
</script>
<!-- Script Size: 1.34 KB -->
Title: Browser NameDetails: 0.50 KB August 23 1997Description: How would you like to know the 'hi-tech' browser name for you web browser? Go here! <!-- ONE STEP TO INSTALL BROWSER NAME:
1. Paste the coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
document.write("<B>"+navigator.appName+"</B><P>");
// End -->
</SCRIPT>
</CENTER>
<!-- Script Size: 0.50 KB -->
Title: Browser Redirection By Screen SizeDescription: A cool script that determines the screen resolution of the surfer, and sends them to a different page (out of 2) depending on whether his/her resolution is high or low. Works in NS 3.x as well!
Insert This code into between the <HEAD> tags of your HTML Page.
<SCRIPT LANGUAGE="JavaScript">
/*
Made By Aviv Salem, Aviv@innocnet.com
*/
// browser test:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 4 || browserName ==
"Microsoft Internet Explorer" && browserVer >= 4)
version = "1";
else if (browserName == "Netscape" && browserVer >= 3)
version = "2";
else
version = "3";
if (version == "1") {
var correctwidth=800
var correctheight=600
if (screen.width<correctwidth||screen.height<correctheight)
location="PAGE_FOR_LOW_SIZE.htm"
else
location="PAGE_FOR_HIGH_SIZE.htm"
}
if (version == "2") {
var toolkit = java.awt.Toolkit.getDefaultToolkit();
var screen_size = toolkit.getScreenSize();
var correctwidth=800
var correctheight=600
if (screen_size.width<correctwidth||screen_size.height<correctheight)
location="PAGE_FOR_LOW_SIZE.htm"
else
location="PAGE_FOR_HIGH_SIZE.htm"
}
if (version == "3")
location="DEFAULT_PAGE.htm"
</SCRIPT>
Insert This code into between the <Body> tags of your HTML Page.
Title: Browser RedirectionDetails: 0.63 KB August 23 1997Description: If you maintain a separate page optimized for MSIE and another for Netscape, then this script will send visitors to the appropriate page. <!-- ONE STEP TO INSTALL BROWSER-SPECIFIC ENTRY:
1. Paste the coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
var name = navigator.appName
if (name == "Microsoft Internet Explorer")
url=("msie.html");
else
url=("netscape.html")
document.write('<A HREF="' + url + '">Enter</A>');
// End -->
</SCRIPT>
</CENTER>
<!-- Script Size: 0.63 KB -->
Title: Browser VersionDetails: 0.50 KB August 23 1997Description: JavaScript can even indicate the version details of the web browser. <!-- ONE STEP TO INSTALL BROWSER VERSION:
1. Paste the coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
document.write("<B>"+navigator.appVersion+"</B><P>");
// End -->
</SCRIPT>
</CENTER>
<!-- Script Size: 0.50 KB -->
Title: Email Vaildator AdvancedDescription: A script that closely examines the content of a form box to ensure that the user entered a valid email address. If not, the form submition is canceled, and the surfer prompted to re-enter a valid address. If it is, the script continues and checks whether the address is of a certain type (such as hotmail and yahoo), and if it is, blocks the form submition as well. In essense, this script allows you to not only block invalid email addresses, but "casual" addresses as well.
Description: A script that closely examines the content of a form box to ensure that the user entered a valid email address. If not, the form submition is canceled, and the surfer prompted to re-enter a valid address. If it is, the script continues and checks whether the address is of a certain type (such as hotmail and yahoo), and if it is, blocks the form submition as well. In essense, this script allows you to not only block invalid email addresses, but "casual" addresses as well. The script makes the following assumptions regarding what a valid email address is:
-Contains a least one character procedding the "@" -Contains a "@" following the procedding character(s) -Contains at least one character following the "@", followed by a dot (.), followed by either a two character or three character string (a two character country code or the standard three character US code, such as com, edu etc)
Note that this script requires NS 4.x or IE 4.x to function- all other browsers will simply not participate in the form validation process.
Example: (Entering senator_ppr@yahoo.com is ok, whereas java_night@yahoo.com and night_barobax@hotmail.com are not)
Please input a valid email address:
Directions: Simply cut and paste the below code into the <body> section of your page. It contains a form with one box that is checked for "email validity". You can add in more form elements into the form, as you would with any other form.
<form name="validation" onSubmit="return checkbae()">
Please input a valid email address:<br>
<input type="text" size=18 name="emailcheck">
<input type="submit" value="Submit">
</form>
<script language="JavaScript1.2">
/*
Advanced Email Check credit-
By Website Abstraction (www.wsabstract.com)
Over 200+ free scripts here!
*/
var invalidaddress=new Array()
invalidaddress[0]="hotmail"
invalidaddress[1]="rocketmail"
invalidaddress[2]="yahoo"
invalidaddress[3]="zdnetmail"
//extend or shorten this list if neccessary
var testresults
function checkemail(){
var invalidcheck=0;
var str=document.validation.emailcheck.value
var filter=/^.+@.+\..{2,3}$/
if (filter.test(str)){
var tempstring=str.split("@")
tempstring=tempstring[1].split(".")
for (i=0;i<invalidaddress.length;i++){
if (tempstring[0]==invalidaddress[i])
invalidcheck=1
}
if (invalidcheck!=1)
testresults=true
else{
alert("Please input a more official email address!")
testresults=false
}
}
else{
alert("Please input a valid email address!")
testresults=false
}
return (testresults)
}
</script>
<script>
function checkbae(){
if (document.layers||document.all)
return checkemail()
else
return true
}
</script>
The type of addresses that are to be blocked are contained inside the array "invalidaddress". Change those to your own. Note that the message that will be alerted when a user enters one of these email addresses is "Please input a more official email address! " You may wish to change that message.
Title: History LengthDetails: 0.52 KB August 23 1997Description: Shock your visitors by telling them how many sites they have been to since they began using their browser! <!-- ONE STEP TO INSTALL HISTORY LENGTH:
1. Paste the designated coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<SCRIPT>
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
var times=history.length;
document.write('You\'ve been to '+times+' site(s) in this browser session.');
</SCRIPT>
</CENTER>
<!-- Script Size: 0.52 KB -->
Title: Hot Mail Log In AppDescription: If you're a hotmail user, you'll love this program. Allows easy access from your own HD to your account. Here are some of the features: Access your HotMail account faster: * Login page loads instantly, since it's stored locally. * Reduce the wait through a slow proxy server. Less Keystrokes: * Once the user sets the Login ID, it is automatically entered into the login form. * Password field automatically receives focus. View Source to get source code of page
DIRECTIONS: Click "Store Login" to save your Login ID.
Title: Info TableDetails: 2.60 KB April 16 1998Description: JavaScript can write a neat little box to the screen telling the visitor's browser and operating system
<!-- ONE STEP TO INSTALL INFO TABLE:
1. Put the coding into the BODY of your HTML document -->
<!-- STEP ONE: Add this code into the HEAD of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Chad Cunningham <ccunning@socrates.mps.ohio-state.edu> -->
<!-- Web Site: http://socrates.mps.ohio-state.edu/~ccunning -->
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
document.write("<center>");
if (bName == "Netscape" && bVer >=4) {
document.write('<table border=1><tr><td>Netscape 4</td></tr>');
}
else if (bName == "Netscape" && bVer >=3) {
document.write('<table border=1><tr><td>Netcape 3</td></tr>');
}
else if (bName == "Netscape" && bVer >=1) {
document.write('<table border=1><tr><td>Netscape 2 or below</td></tr>');
}
else if (bName == "Microsoft Internet Explorer" && bVer >=4) {
document.write('<table border=1><tr><td>Internet Explorer 4</td></tr>');
}
else if (bName == "Microsoft Internet Explorer" && bVer >=2) {
document.write('<table border=1><tr><td>Internet Explorer 3</td></tr>');
}
else document.write ("<table border=1>");
function isWin95() {
if (navigator.appVersion.indexOf("95") !=-1)
return true;
else return false;
}
function isWin31() {
if (navigator.appVersion.indexOf("16") !=-1)
return true;
else return false;
}
function isPPC() {
if (navigator.appVersion.indexOf("PPC") !=-1)
return true;
else return false;
}
function isSun() {
if (navigator.appVersion.indexOf("SunOS") !=-1)
return true;
else return false;
}
function isLinux() {
if (navigator.appVersion.indexOf("Linux") !=-1)
return true;
else return false;
}
function isHP() {
if (navigator.appVersion.indexOf("HP") !=-1)
return true;
else return false;
}
function isNT() {
if (navigator.appVersion.indexOf("NT") !=-1)
return true;
else return false;
}
if (isWin95()) {
document.write('<tr><td>Windows 95</td></tr></table>');
}
else if (isWin31()) {
document.write('<tr><td>Windows 3.1</td></tr></table>');
}
else if (isPPC()) {
document.write('<tr><td>MacOS</td></tr></table>');
}
else if (isSun()) {
document.write('<tr><td>SunOS</td></tr></table>');
}
else if (isLinux()) {
document.write('<tr><td>Linux</td></tr></table>');
}
else if (isHP()) {
document.write('<tr><td>HP-UX</td></tr></table>');
}
else if (isNT()) {
document.write('<tr><td>Windows NT</td></tr></table>');
}
else document.write("</table>")
document.write("</center>")
// End -->
</SCRIPT>
<!-- Script Size: 2.60 KB -->
Title: IP AddressDetails: 1.20 KB December 20 1997Description: (works only for Netscape Browsers with Java enabled) If you would like to get your visitors IP Addresses, use this script. Very cool. <!-- ONE STEP TO INSTALL IP ADDRESS:
1. Put the code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
netscapeTest = parseInt(navigator.appVersion)
explorerTest = navigator.appName.indexOf("Microsoft") + 1
function netscapeThree() {
if (navigator.javaEnabled()) {
userDomain = java.net.InetAddress.getLocalHostName()
return (userDomain.toString())
} else {
return null
}
}
function netscapeFour() {
if (navigator.javaEnabled()) {
baseAddress = java.net.InetAddress.getLocalHost()
userDomain = baseAddress.getHostName()
return (userDomain.toString())
} else {
return null
}
}
if ((explorerTest == "0") && (netscapeTest == "3")) {
domainName = netscapeThree()
}
else if ((explorerTest == "0") && (netscapeTest == "4")) {
domainName = netscapeFour()
}
else {
domainName = "using Internet Explorer? Then I don\'t know what your IP address is."
}
alert('Are you really ' + domainName + ' ?')
// End -->
</SCRIPT>
<!-- Script Size: 1.20 KB -->
Title: JavaScript VersionDetails: 1.24 KB July 3 1998Description: Neat little example which displays what JavaScript version the visitor's browser supports. It's pretty neat, extremely simple. Check it out!
<!-- TWO STEPS TO INSTALL JAVASCRIPT VERSION:
1. Paste the first code in the HEAD of your HTML document
2. Add the last coding to the BODY of your HTML document -->
<!-- STEP ONE: Paste the first code in the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
function JSVer(){
return "1.0";
}
// End -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function JSVer(){
return "1.1";
}
// End -->
</SCRIPT>
<SCRIPT Language="JavaScript1.2">
<!-- Begin
function JSVer(){
return "1.2";
}
// End -->
</SCRIPT>
<NOSCRIPT>
<B>Your browser does not currently support JavaScript.</B>
<P>If your are using Netscape 2 or later then you can enable JavaScript.
<P>Version 2 or 3: Choose Options|Network Preferences, choose the Languages tab, click Enable Javascript and then click OK.
<P>Version 4: Choose Edit|Preferences|Advanced, click Enable JavaScript and then click OK.
<P><HR><P>
Note: If you are using Internet Explorer and see this message, then your version does not support JavaScript. (JavaScript can not be disabled in Internet Explorer)
</NOSCRIPT>
<!-- STEP TWO: Add the last coding to the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
document.write("<B>Your browser supports JavaScript version " + JSVer() + ".</B>")
// End -->
</SCRIPT>
<!-- Script Size: 1.50 KB -->
Title: Midi PlayerDetails: 2.82 KB May 29 1998Description: To ensure that the correct midi file is played in your visitor's browsers, use this little JavaScript. It will determine which browser they are using and display the appropriate HTML tags to display the midi file. Cool!<html>
<head>
<title></title>
</head>
<body bgcolor="ffffff">
<a href="http://www.web-development.com/cgi-bin/gotoad.cgi?kaigler" target="_top">
<p align="center"><img src="http://www.web-development.com/images/banner6.gif" border="0"></a><br>
<a href="http://www.web-development.com/cgi-bin/gotoad.cgi?kaigler" target="_top"><font
size="2">Please Visit our Sponsor</font></a><br>
</p>
<hr>
<font size="+2" color="000080">
<p align="center">Random Midi Player</font> <br>
<br>
<script LANGUAGE="JavaScript">
// Jason Aunkst; jra@dtx.net
// This script came from the Web-Development.Com JavaScript Site
// Located at http://www.web-development.com/
var nummidi = 2
day = new Date()
seed = day.getTime()
ran = parseInt(((seed - (parseInt(seed/1000,10) * 1000))/10)/100*nummidi + 1,10)
if (ran == (1)){
midi=("mozart.mid")
title=("SPEAK")
leng=162
}
if (ran == (2)){
midi=("mozart.mid")
title=("BEETLEJUICE")
leng=308
}
if (ran == (3)){
midi=("http://users.loa.com/~tracyk/x_files.mid")
title=("X-FILES")
leng=245
}
if (ran == (4)){
midi=("http://www.cris.com/~temc/lump.mid")
title=("LUMP")
leng=197
}
if (ran == (5)){
midi=("http://users.loa.com/~tracyk/wannabe.mid")
title=("WANNABE")
leng=191
}
if (ran == (6)){
midi=("http://users.loa.com/~tracyk/whatislove.mid")
title=("WHAT IS LOVE")
leng=243
}
if (ran == (7)){
midi=("http://www.cris.com/~temc/dazed.mid")
title=("DAZED")
leng=279
}
if (ran == (8)){
midi=("http://www.dcom-lao.com/speak.mid")
title=("DONT SPEAK")
leng=46
}
if (ran == (9)){
midi=("http://users.loa.com/~tracyk/Beetljuc.mid")
title=("BEETELJUICE")
leng=308
}
if (ran == (10)){
midi=("http://users.loa.com/~tracyk/x_files.mid")
title=("X-FILES")
leng=245
}
if (ran == (11)){
midi=("http://www.cris.com/~temc/lump.mid")
title=("LUMP")
leng=197
}
if (ran == (12)){
midi=("http://users.loa.com/~tracyk/wannabe.mid")
title=("WANNABE")
leng=191
}
if (ran == (13)){
midi=("http://users.loa.com/~tracyk/whatislove.mid")
title=("WHAT IS LOVE")
leng=243
}
if (ran == (14)){
midi=("http://www.cris.com/~temc/dazed.mid")
title=("DAZED")
leng=279
}
if (ran == (15)){
midi=("http://www.dcom-lao.com/speak.mid")
title=("DONT SPEAK")
leng=46
}
if (ran == (16)){
midi=("http://users.loa.com/~tracyk/Beetljuc.mid")
title=("BEETLEJUICE")
leng=308
}
if (ran == (17)){
midi=("http://users.loa.com/~tracyk/x_files.mid")
title=("X-FILES")
leng=245
}</script></p>
<p align="center"><script LANGUAGE="JavaScript">if (ran == (18)){
midi=("http://www.cris.com/~temc/lump.mid")
title=("LUMP")
leng=197
}</script></p>
<p align="center"><script LANGUAGE="JavaScript">if (ran == (19)){
midi=("http://users.loa.com/~tracyk/wannabe.mid")
title=("WANNABE")
leng=191
}</script></p>
<p align="center"><script LANGUAGE="JavaScript">if (ran == (20)){
midi=("http://users.loa.com/~tracyk/whatislove.mid")
title=("WHAT IS LOVE")
leng=243
}</script></p>
<p align="center"><script LANGUAGE="JavaScript">if (ran == (21)){
midi=("mozart.mid")
title=("DAZED")
leng=279
}</script></p>
<p align="center"><script LANGUAGE="JavaScript">if (ran == (22)){
midi=("mozart.mid")
title=("DONT SPEAK")
leng=162
}</script></p>
<script LANGUAGE="JavaScript">
document.write('<META HTTP-EQUIV=REFRESH CONTENT="' + leng + '; URL=shuffle.htm">')
document.write('<FONT SIZE=2>' + title + '</Font><BR>')
document.write('<META HTTP-EQUIV=REFRESH CONTENT="' + leng + '; URL=jv_midi3.html">')
document.write('<EMBED SRC="'+ midi +'" WIDTH=140 HEIGHT=60 AUTOSTART="true" LOOP="false">')</script>
</body>
</html>
Title: Plugins TableDetails: 2.31 KB August 23 1997Description: JavaScript can create a table to display all the plugins displayed on your computer. Also tells if they are enabled, etc.. NETSCAPE ONLY.. <!-- ONE STEP TO INSTALL USER PLUGINS:
1. Put the coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
numPlugins = navigator.plugins.length;
if (numPlugins > 0)
document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
else
document.writeln("<b><font size=+2>No plug-ins ");
document.writeln("are installed.</font></b><br>");
document.writeln("<hr>");
for (i = 0; i < numPlugins; i++) {
plugin = navigator.plugins[i];
document.write("<center><font size=+1><b>");
document.write(plugin.name);
document.writeln("</b></font></center><br>");
document.writeln("<dl>");
document.writeln("<dd>File name:");
document.write(plugin.filename);
document.write("<dd><br>");
document.write(plugin.description);
document.writeln("</dl>");
document.writeln("<p>");
document.writeln("<table width=100% border=2 cellpadding=5>");
document.writeln("<tr>");
document.writeln("<th width=20%><font size=-1>Mime Type</font></th>");
document.writeln("<th width=50%><font size=-1>Description</font></th>");
document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
document.writeln("<th><font size=-1>Enabled</th>");
document.writeln("</tr>");
numTypes = plugin.length;
for (j = 0; j < numTypes; j++) {
mimetype = plugin[j];
if (mimetype) {
enabled = "No";
enabledPlugin = mimetype.enabledPlugin;
if (enabledPlugin && (enabledPlugin.name == plugin.name))
enabled = "Yes";
document.writeln("<tr align=center>");
document.writeln("<td>");
document.write(mimetype.type);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.description);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.suffixes);
document.writeln("</td>");
document.writeln("<td>");
document.writeln(enabled);
document.writeln("</td>");
document.writeln("</tr>");
}
}
document.write("</table>");
document.write("<p><hr><p>");
}
// End -->
</SCRIPT>
</CENTER>
<!-- Script Size: 2.31 KB -->
Title: ReferrerDetails: 0.52 KB December 21 1997Description: It's always fun to show how good you are with JavaScript. This script will show where the visitor came from. Pretty cool! <!-- ONE STEP TO INSTALL REFERRER:
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Add this code into the BODY of your HTML document -->
<script LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
document.write("<B>Thanks for visiting us from ");
document.write(document.referrer+"</B>");
// End -->
</script>
<!-- Script Size: 0.52 KB -->
Title: Right BrowserContributor URL: http://www.geocities.com/SiliconValley/6052Details: 1.46 KB February 22 1998Description: How do you let your visitors know that they do or do not have the right browser to view your site? Use this JavaScript! It'll tell them if they are using the right browser and the right version, or not....<!-- TWO STEPS TO INSTALL RIGHT BROWSER?:
1. Put the code into the HEAD of your HTML document
2. Copy the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Original: http://www.geocities.com/SiliconValley/6052 -->
<!-- Begin
function DetectBrowser (BestBrowser,BestVersion) {
var Browser = navigator.appName;
var Version = navigator.appVersion;
if (Browser == BestBrowser) {
if (Version == BestVersion) {
alert ("Congratulations, you've got just the right browser to be able to view this page properly.");
} else {
alert ("You've at least got the right browser, but the version is not the right one, so you might not be possible to view the page properly.");}
} else {
alert ("Sorry, you haven't got the right browser to view this page as it was meant to be viewed, so you'll probably not be able to view this page properly.");
}
}
// End -->
</SCRIPT>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center><FONT SIZE=-1>This page is best viewed with Netscape 3.01, Windows 95 and 640x480 resolution.</FONT>
<FORM><INPUT TYPE=BUTTON VALUE="Have the right browser?" onClick="DetectBrowser ('Netscape','3.01Gold (Win95; I)')"></FORM></center>
<!-- Script Size: 1.46 KB -->
Title: Screen SizeDetails: 0.51 KB August 23 1997Description: JavaScript can even tell the visitor their screensize in the format: XX pixels by XX pixels. Very neat. <!-- ONE STEP TO INSTALL SCREEN SIZE:
1. Paste the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!-- Begin
alert('Your screen is:\n\n' + screen.width + ' pixels by ' + screen.height + ' pixels');
// End -->
</SCRIPT>
<!-- Script Size: 0.51 KB -->
Title: Visitor MonitorDetails: 2.16 KB August 23 1997Description: If you are really interested in knowing who has come to your site, use this script. You will receive an e-mail from each visitor without them sending it. Very sneaky! <!-- FOUR STEPS TO INSTALL VISITOR MONITOR:
1. Put the first code into the HEAD of your HTML document
2. Add the onLoad event handler to the BODY tag
3. Paste the last code into the BODY of your HTML document
4. Change the 'dummy' e-mail address to your instead. -->
<!-- STEP ONE: paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--Total Java Scripts 99 - Next Step Software-->
<!--
var startTime = new Date();
startTime = startTime.getTime();
var submissions = 0;
function checkForDuplicate() {
if (document.form1) {
document.form1.REFERRER.value = document.referrer;
document.form1.PLATFORM.value = navigator.appName
+ " " + navigator.appVersion;
submissions++;
if (submissions > 1)
return false;
else
return true;
} else {
return false;
}
} // goes with function
function doneLoading() {
var stopTime = new Date();
stopTime = stopTime.getTime();
document.form1.LOADING_TIME.value = ((stopTime - startTime) / 1000)
+ " seconds";
document.form1.PAGE.value = document.title;
document.form1.SUBMITTER.click(); // triggers submission of form
// equivalent to form.submit(), but
// Netscape blocks form.submit() calls to forms with mailto actions
// this is a workaround for that problem
}
// -->
</script>
</HEAD>
<!-- STEP TWO: Add the onLoad event handler to your BODY tag -->
<BODY onLoad="doneLoading()">
<!-- STEP THREE: Paste this code into the BODY of your HTML document -->
<FORM name="form1"
METHOD=post
action="mailto:antispammer@earthling.net?SUBJECT=Devious Visitor Monitor"
enctype="text/plain"
onSubmit="return checkForDuplicate()">
<input type="hidden" name="PAGE" value="none">
<input type="hidden" name="REFERRER" value="none">
<input type="hidden" name="PLATFORM" value="none">
<input type="hidden" name="LOADING_TIME" value="none">
<input type="submit"
name="SUBMITTER"
value="Click me to let me know you were here">
</form>
<!-- STEP FOUR: Change the 'dummy' e-mail address to yours. =-) -->
<!-- Script Size: 2.16 KB -->
Title: Times Visited a Page With a Message to your VistorDetails: 1.16 KB Ocotber 23 1998 - Next Step Description: This script will show your visitors how many times that they have visited your page and display a message that you make for each new time they visit your site!<html>
<head>
<title>Now put these lines where you want the message to go</title>
<script language="JavaScript">
<!-- Hide this script from old browsers --
function getCookieVal (offset)
{
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}
function SetCookie (name, value)
{
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (2 < argc) ? argv[2] : null;
var path = (3 < argc) ? argv[3] : null;
var domain = (4 < argc) ? argv[4] : null;
var secure = (5 < argc) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function ResetCounts(name)
{
visits = 0;
SetCookie("visits", visits, expdate , "/", null, false);
location.reload();
}
// -- End Hiding Here -->
//If you want to spice up the lettering a little bit by making it bold or adding color, you would take one of the lines like this --> document.write("YOUR MESSAGE"); and add the tags. Here's an example...//
//document.write("<font color="red"><strong><em>"+"YOUR MESSAGE"+"</font></strong></em>);//
</script>
</head>
<body>
<p align="center">Now put these lines where you want the message to go. <script
language="JavaScript">
<!-- Hide this script from old browsers --
var expdate = new Date();
var visits;
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
if(!(visits = GetCookie("visits")))
visits = 0;
visits++;
SetCookie("visits", visits, expdate, "/", null, false);
document.write("You have visited this page "+visits+" time(s)."+"<br>");
if(visits == 1)
document.write("YOUR MESSAGE 1 ");
if(visits == 2)
document.write("YOUR MESSAGE 2");
if(visits == 3)
document.write("YOUR MESSAGE 3");
if(visits == 4)
document.write("YOUR MESSAGE 4 ");
if(visits == 5)
document.write("YOUR MESSAGE 5 ");
if(visits == 6)
document.write("YOUR MESSAGE6 ");
if(visits == 7)
document.write("YOUR MESSAGE7");
if(visits== 8)
document.write("YOUR MESSAGE8");
if(visits== 9)
document.write("YOUR MESSAGE9");
if(visits>=10)
document.write("YOUR MESSAGE10");
// -- End Hiding Here -->
</script> </p>
</body>
</html>
Title: Users Operating SystemDescription: A script that directs surfers to a different page, depending on his OS (operating system).
Insert This code into between the <HEAD> tags of your HTML Page.
<SCRIPT>
<!--
{
if((navigator.userAgent.indexOf('Win') != -1) &&
(navigator.userAgent.indexOf('95') != -1))
{ window.location.href="win95.html"; }
else if(navigator.userAgent.indexOf('Win') != -1)
{ window.location.href="win31.html"; }
else if(navigator.userAgent.indexOf('Mac') != -1)
{ window.location.href="mac.html"; }
else { window.location.href="win.html"; }
}
//-->
</SCRIPT>
Insert This code into between the <Body> tags of your HTML Page.
::Window s ::
Title: Windows (Open New Windows\Close)Contributor: Next StepDetails: 5.31 KB February 15 1998Description: This script is a wonderful example of JavaScript at it's best. This will show you the basics on opening new windows and closing windows<html>
<head>
<title>Create a New Window</title>
</head>
<body>
<form NAME="winform">
<p><input TYPE="button" VALUE="Open New Window"
onClick="NewWin=window.open('','NewWin',
'toolbar=no,status=no,width=200,height=100'); ">
</p>
<p><input TYPE="button" VALUE="Close New Window" onClick="NewWin.close();"> </p>
<p><input TYPE="button" VALUE="Close Main Window" onClick="window.close();"> </p>
</form>
</body>
</html>
Create a New Window
Use the buttons below to test opening and closing windows in JavaScript.
Have fun!
Title: Advance Window Scroller Description: This is actually a DHTML script that scrolls down a page than repeats again and again.
Insert into <BODY> of your document.
<script language="JavaScript1.2">
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function scrollwindow(){
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+1
else
currentpos=window.pageYOffset+1
window.scroll(0,currentpos)
}
else{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",10)
}
window.onload=initialize
</script>
Title: Opens Windows on Mouse PassoverContributor: Next StepDetails: .71 KB February 15 1998Description: This will launch a remote Window with a message or link when the mouse is passed over a link><script language="JavaScript">
<!-- vor alten Browsern verstecken copyright Arnold Schiller http://homepages.muenchen.org/bm596269
function msgopen() {
fenster = open("", "Welcome", "scrollbar=yes,width=400,height=200");
fenster.document.open();
with (fenster.document) {
write("<html><base target='Frame 0'><body onBlur='window.close()'>");//Frame0 is name of the display change it, if //necessary
write("Hi There! <BR>");
write(" Here's a quick way to get another window up here.<BR>");
write("<A HREF='http://www.htmlgoodies.com/javagoodies'>http://www.htmlgoodies.com/javagoodies</A><BR>");
write("<P>Close the window to grab the script.<BR>");
write("</body></html>");
}
fenster.document.close();
}
// -->
</script>
<a href="" onMouseover="msgopen()">Open the message window on Mouseover</a>
Title: Loads Popup Window when Page LoadsDescription: This will launch a remote Window when you enter a page.
Insert into <HEAD> of your document.
<script>
function winopen(){
window.open("LINK LOCATION", "WINDOW NAME", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=200,height=260")
}
</script>
Insert into <BODY> of your document.
<body onLoad="winopen()">
New Window - Page Load To use this script copy the purple junk into your head tag and change LINK LOCATION, WINDOW NAME and any of the window attributes. <script> function winopen(){ window.open("LINK LOCATION", "WINDOW NAME", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=200,height=260") } </script> Now put this inside your body code. <body onLoad="winopen()"> An example is: <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="winopen()"> or <body onLoad="winopen()"> If you want another window to open, copy this line and add to the script that goes in the head tag. It goes just before the"}". Make the WINDOW NAME something different from the first one! window.open("LINK LOCATION", "WINDOW NAME", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=200,height=260")
Title: New Window when Entering Page - Closes on TimerContributor: Next StepDetails: .71 KB * October 25 1998Description: This will launch a remote Window when entering a page and the remote Window will stay open for a set amount of time. In the example it is 5 seconds.
Insert into <HEAD> of your document.
<script>
function winopen(){
win = window.open("YOUR PAGE NAME", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=260")
startTime()
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // Amount of time that the window stays open in seconds
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (win.closed == false){
win.close()}}
else{
window.setTimeout("Timer()",1000)}
}
</script>
Insert into <BODY> of your document.
onLoad="winopen()"
Title: New Window when Button Clicked - Closes on TimerContributor: Next StepDetails: .81 KB February 15 1998Description: This will launch a remote Window when clicking a button and the remote Window will stay open for a set amount of time. In the example it is 5 seconds.
Insert into <HEAD> of your document.
<script>
function winopen(){
win = window.open("YOUR PAGE NAME", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=260")
startTime()
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // Amount of time that the window stays open in seconds
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (win.closed == false){
win.close()}}
else{
window.setTimeout("Timer()",1000)}
}
</script>
Insert into <BODY> of your document.
<form><input type=button value="YOUR BUTTON DESCRIPTION" onClick="winopen();"></form>
Title: New Window when Mouse is Moved Over a Link - Closes on TimerContributor: Next StepDescription: This will launch a remote Window when you pass the mouse over a Link and the remote Window will stay open for a set amount of time. In the example it is 5 seconds.
Insert into <HEAD> of your document.
<script>
function winopen(){
win = window.open("YOUR PAGE NAME", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=260")
startTime()
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // Amount of time that the window stays open in seconds
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (win.closed == false){
win.close()}}
else{
window.setTimeout("Timer()",1000)}
}
</script>
Insert into <BODY> of your document.
<a href="" onMouseOver="winopen();return false;">YOUR LINK DESCRIPTION</a>
Title: New Window when Mouse is Moved Over an Image - Closes on TimerContributor: Next StepDescription: This will launch a remote Window when you pass the mouse over a n Image and the remote Window will stay open for a set amount of time. In the example it is 5 seconds.
Insert into <HEAD> of your document.
<script>
function winopen(){
win = window.open("YOUR PAGE NAME", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=260")
startTime()
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // Amount of time that the window stays open in seconds
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (win.closed == false){
win.close()}}
else{
window.setTimeout("Timer()",1000)}
}
</script>
Insert into <BODY> of your document.
<a href="" onMouseOver="winopen();return false;"><img src="YOUR IMAGE FILE" border=0></a>
Title: New Window when Mouse is Moved Over an Image - Closes on TimerContributor: Next StepDescription: This will launch a remote Window when you pass the mouse over a n Image and the remote Window will stay open for a set amount of time. In the example it is 5 seconds.
Insert into <HEAD> of your document.
<script>
function winopen(){
win = window.open("YOUR PAGE NAME", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=260")
startTime()
}
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=3; // Amount of time that the window stays open in seconds
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (win.closed == false){
win.close()}}
else{
window.setTimeout("Timer()",1000)}
}
</script>
Insert into <BODY> of your document.
<a href="" onMouseOver="winopen();return false;"><img src="YOUR IMAGE FILE" border=0></a>
Title: Opens Windows when mouse passes over TextContributor: Next StepDetails: .83 KB February 15 1998Description: This will launch a remote Window when the mouse passes over certain text and remains open until the user closes the window.<html>
<head><script Language="JavaScript">
function winopen () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=400,height=400");
msg.location = "index.htm"
}
</script>
<title></title>
</head>
<body link="#008000" vlink="#008000" alink="#008000">
<a href"" onMouseOver="winopen(); return true;">
<p>Your Text</a> </p>
</body>
</html>
Title: Opens Windows While Mouse Is Over Text Closes when not on TextContributor: Next StepDetails: .91 KB February 25 1998Description: This will launch a remote Window when mouse is over text and the window will remained open until the mouse moves off the text or hot spot.<html>
<head><script Language="JavaScript">
function winopen () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=400,height=400");
msg.location = "index.htm"
}
</script>
<title></title>
</head>
<body link="#008000" vlink="#008000" alink="#008000">
<a href"" onMouseOver="winopen(); return true;">
<p>Your Text</a> </p>
</body>
</html>
Title: Frame BreakerContributor: Next StepDetails: .31 KB * October 25 1998Description: The below script will automatically break out of a frame if it detects one. Great for people who came from a frames site to yours so they don't get caught up in all those irratating frames.<SCRIPT LANGUAGE="JavaScript">
<!--
setTimeout ("changePage()", 3000);
function changePage() {
if (self.parent.frames.length != 0)
self.parent.location="http://www.abstract.simplenet.com";
}
// -->
</SCRIPT>
Title: Customize Second WindowDetails: 1.81 KB * October 25 1998Description: This cool script will allow users to open a secondary, the user can customizable the second window to his needs.
Insert into <HEAD> of your document.
<SCRIPT LANGUAGE="JAVASCRIPT"><!-- hide
//--------------------------------------------------
// Copyright Reaz Hoque, 1996, All right reserved
// This code can be used for non-profit use only if
// the copyright notice is kept.
//---------------------------------------------------
function customize(form) {
var address = document.form1.url.value;
var op_tool = (document.form1.tool.checked== true) ? 1 : 0;
var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0;
var op_dir = (document.form1.dir.checked == true) ? 1 : 0;
var op_stat = (document.form1.stat.checked == true) ? 1 : 0;
var op_menu = (document.form1.menu.checked == true) ? 1 : 0;
var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0;
var op_resize = (document.form1.resize.checked == true) ? 1 : 0;
var op_wid = document.form1.wid.value;
var op_heigh = document.form1.heigh.value;
var option = "toolbar=" + op_tool + ",location=" + op_loc_box + ",directories="
+ op_dir + ",status=" + op_stat
+ ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizeable=" + op_resize
+ ",width="
+ op_wid + ",height=" + op_heigh;
var win3 = window.open("", "what_I_want", option);
var win4 = window.open(address, "what_I_want");
}
function clear(form){
document.form1.wid.value="";
document.form1.heigh.value="";
}
// done hiding -->
</SCRIPT>
Insert into <BODY> of your document.
<CENTER>
<TABLE cellpadding=5 border><TR><TD><PRE>
<FORM name=form1 ACTION="javascript:" METHOD="POST">
<INPUT TYPE="text" SIZE= "30" NAME="url" value="http://" >: URL
<INPUT TYPE="checkbox" NAME="tool">: Toolbar
<INPUT TYPE="checkbox" NAME="loc_box">: Location
<INPUT TYPE="checkbox" NAME="dir">: Directories
<INPUT TYPE="checkbox" NAME="stat">: Status
<INPUT TYPE="checkbox" NAME="menu">: Menubar
<INPUT TYPE="checkbox" NAME="scroll">: Scrollbars
<INPUT TYPE="checkbox" NAME="resize">: Resizable
<INPUT TYPE="text" NAME="wid" value="500">: Width
<INPUT TYPE="text" NAME="heigh" value="200">: Height
<BR><CENTER>
<INPUT TYPE="button" SIZE="10" VALUE=" ENTER " OnClick="customize(this.form)">
<INPUT TYPE="reset" SIZE="10" VALUE=" RESET " onClick="clear(this.form)">
</PRE></TD></TR></TABLE>
</FORM>
</CENTER>
inam khobe hatman ye negahi bokonid
Title: Floating Window That MovesDescription: Opens up a second small window and moves the window around in a circular fashion. .
Insert into <HEAD> of your document.
<Script Language="JavaScript1.2">
<!-- Hiding
/* Java Script by Lefteris Haritou 5/05/1997
http://www.geocities.com/SiliconValley/7096
Please do not remove the above credit !
No copyrights, but just be fair
*/
var x=0;
var y=0;
var plus=1;
function start(){
nw=window.open("","wd","scrolbar=0,toolbar=0,status=0");
window.nw.resizeTo(200,100);
window.nw.moveTo(0,0)
nw.document.open();
nw.document.writeln('<HTML><BODY onBlur="self.focus()" Bgcolor="#FFFFF0"><CENTER><BR><font face="Arial" color="#0000FF" size=4>Cool New Features Of Netscape 4</font></CENTER></BODY></HTML>');
nw.document.close();
gvar();
}
function earthquake(){
window.nw.moveBy(x,y);
gvar();
}
function gvar(){
if (plus==1){
if (x<35){
x+=1;
window.setTimeout("earthquake()",200);
}
else{
if (y<29){
y+=1;
window.setTimeout("earthquake()",200);
}
else{
plus=0;
x=0;
y=0;
gvar();
}
}
}
else{
if (x>-35){
x-=1;
window.setTimeout("earthquake()",200);
}
else{
if (y>-29){
y-=1;
window.setTimeout("earthquake()",200);
}
else{
fine();
}
}
}
}
function gvarm(){
if (y>0){
y-=1;
window.setTimeout("earthquake()",200);
}
else{
if (x>0){
x-=1;
window.setTimeout("earthquake()",200);
}
else{
fine();
}
}
}
function fine(){
alert("Demo presented to you by Lefteris Haritou \n http://www.geocities.com/~lef");
nw.close();
clearTimeout();
}
// Done Hiding -->
</Script>
Insert into <BODY> of your document.
<CENTER>
<Form>
<Input type="button" Value="Begin" onclick="start()">
</Form>
</CENTER>
Inam khobe in hamuniye ke bishtar tarahane web lazemesh daram vase tablig
Title: Farewell Window LauncherDescription: Loads a new "Fairwell" window whenever someone leaves the page.
Insert into <HEAD> of your document.
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from JavaScript-Impaired Browsers
locnm=location.href;
pos=locnm.indexOf("indexb.htm");
locnm1=locnm.substring(0,pos);
function ByeWin() {
windowIMA=window.open("",'Anim2','toolbar=no,location=yes,directories=no,menubar=no,scrollbars=no,status=yes,resizable=1,width=260,height=290')
windowIMA.document.write("<HTML><TITLE>See you</TITLE>"
+"<BODY BGCOLOR='black' text= 'white'><CENTER>"
+"<FORM METHOD=GET ACTION='"+locnm1+"h5s3.html'>"
+"<P><B>Good bye.!<P>Thanks for visiting!<BR>"
+"Please add your own html text here"
+"<BR>Website Abstraction bids you farewell</B></FORM><BR>");
}
// End Hiding -->
</SCRIPT>
Insert into <BODY> of your document.
<BODY onUnload="ByeWin()">
Title: Remote Window Launcher 2Contributor: Next StepDetails: .91 KB February 25 1998Description: This will launch a remote Window that launches pages into pages in the original window.
Insert into <HEAD> of your document.
<script>
<!--
function remote(){
/*Credit: Website Abstraction www.wsabstract.com more JavaScripts here.*/
win2=window.open("remotewin.htm","","width=150,height=350,scrollbars")
win2.creator=self
}
//-->
</script>
<form>
<input type="button" value="Launch remote!" onClick="remote()">
</form>
Copy This and save it as remotewin.htm
<html>
<head>
<title>Remote Control</title>
<script>
<!--
function remote2(url){
creator.location=url
}
//-->
</script>
</head>
<body bgcolor="ffffff">
<div align="left">
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFF00">
<tr>
<td width="100%"><p align="center"><strong><big><font face="Arial">Remote Control</font></big></strong></td>
</tr>
</table>
</div>
<p align="left"><font face="Arial" size="2"><a
href="javascript:remote2('../javaindex.htm')"><strong>JavaScript Tutorials</strong></a></font></p>
<p align="left"><font face="Arial"><a href="javascript:remote2('../howto/webbuild.htm')"><strong><small>Web
building tutorials</small></strong></a></font></p>
<p align="left"><a href="javascript:remote2('../cutpastejava.htm')"><font face="Arial"
size="2"><strong>Free JavaScripts</strong></font></a></p>
<p align="left"><a href="javascript:remote2('../java/javafront.htm')"><small><font
face="Arial"><strong>Free Java applets</strong></font></small></a></p>
<p align="left"><font face="Arial" size="2"><a
href="javascript:remote2('../frontpage.htm')"><strong>FrontPage Tutorials</strong></a></font></p>
<p align="left"><a href="javascript:remote2('../backgr.htm')"><font face="Arial" size="2"><strong>Web
Graphics</strong></font></a></p>
<p align="left"><a
href="javascript:remote2('http://www.wsabstract.com/script/cut105.htm')"><font
face="Arial" size="2"><strong>Back to script</strong></font></a></p>
</body>
</html>
Title: Loads New Page and Open Pop-Up Window With LinkDescription: This will load a new page in the current page that your in plus open a Popup Window when the Hyperlink is clicked by the mouse.
Insert into <BODY> of your document.
<a href="index.htm" ONCLICK="window.open('blank1.htm', 'NewWindow','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')">
Title: Loads New Page and Opens 2 Pop-Up Window With LinkDescription: This will load a new page in the current page that your in plus open 2 new Popup Window when the Hyperlink is clicked by the mouse.
Insert into <HEAD> of your document.
<script language="JavaScript">
function winopen(){
window.open('DESTINATION LINK IN NEW WINDOW1', 'NewWindow1', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')
window.open('DESTINATION LINK IN NEW WINDOW2', 'NewWindow2', 'toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')
}
</script>
Insert into <BODY> of your document.
<a href="PARENT WINDOW LOCATION" ONCLICK="winopen()">LINK DESCRIPTION</a>
Inam ye sari az codeayi ajibe java ke kare shomaro rahat mikone code mikhayi besazi amade bash
java Editors
Html Builder
Instructions:
Fill out the table with stuff you want to appear on your page.
Click on Generate Source.
Make adjustments if you want in the text area.
Click on View to check out your page.
If you want to save the source as a file you will have to cut and paste to a text editor.
Html 2 java
It can be a giant time-consumer to code up HTML to be written by a JavaScript. Why? Because of the present limitations on string length readable by the compiler. You have to keep concatenating the lines with single or double quotes and plus signs. Unlike PERL, which permits a write literal until end write statement is encountered, every bit of the HTML has to be specified in the "document.write("text");" format when using JavaScript.
This little app is for the Web Developer who is doing his/her own developments in JavaScript. It's designed specifically to make the task of writing HTML from JavaScripts less onerous.
To use it, simply paste your HTML into the window below and click the submit button. So long as you have not mixed single and double quotes in your HTML, it'll do the job for you. For example, if you code your HTML with double quotes (<BODY BGCOLOR="white"> or <A HREF="file.htm">), it will return the JavaScript statement properly concatenated. Similarly, if you code your HTML with single quotes (<BODY BGCOLOR='white'> or <A HREF='file.htm'>), it will function properly.
If you write JavaScript within JavaScript, this utility will also be useful, but you will need to split any </SCRIPT> calls like this:
document.write("</SCR"+"IPT>"
to avoid "confusing" the compiler. (Either that or add some exception handling to the source code of this utility)
Html Desinger
Prompt mode is now working.
HTMLjive Document:
Special thanks to Ray Daly for this Script.
It's an HTML editor in JavaScript !
Html Pro
Page maker
Page maker
Begin by clicking this button and typing the title of your page
Select your background text and link colors
Unfortunetly you will not be able to see the text and link color change so you will have to look at the background colors to see what colors will look good for your text.
Background: Black White Blue Red Green Gold Darkgrey Light Brown Navy Purple Peach Off White darker peach Dark Purple Light blue Salmon kinda hot pink More Off White Sienna Grean Beige Brownish off white Dark red Sky Blue pinkish red Dark orange Greenich Grey Aqua Green Lavander Yellow Teal Barely off white Brownish Red Ugly Green Light purple Olive Very Dark grey Indiglo Nice Green midnight blue Bright puple Orange Baby Blue Bright obnoxious green Brick Light grey Hot Pink Pure purple kinda nice blue sea green Links: Black White Blue Red Green Gold Darkgrey Light Brown Navy Purple Peach Off White darker peach Dark Purple Light blue Salmon kinda hot pink More Off White Sienna Grean Beige Brownish off white Dark red Sky Blue pinkish red Dark orange Greenich Grey Aqua Green Lavander Yellow Teal Barely off white Brownish Red Ugly Green Light purple Olive Very Dark grey Indiglo Nice Green midnight blue Bright puple Orange Baby Blue Bright obnoxious green Brick Light grey Hot Pink Pure purple kinda nice blue sea green Active links: Black White Blue Red Green Gold Darkgrey Light Brown Navy Purple Peach Off White darker peach Dark Purple Light blue Salmon kinda hot pink More Off White Sienna Grean Beige Brownish off white Dark red Sky Blue pinkish red Dark orange Greenich Grey Aqua Green Lavander Yellow Teal Barely off white Brownish Red Ugly Green Light purple Olive Very Dark grey Indiglo Nice Green midnight blue Bright puple Orange Baby Blue Bright obnoxious green Brick Light grey Hot Pink Pure purple kinda nice blue sea green Text: Black White Blue Red Green Gold Darkgrey Light Brown Navy Purple Peach Off White darker peach Dark Purple Light blue Salmon kinda hot pink More Off White Sienna Grean Beige Brownish off white Dark red Sky Blue pinkish red Dark orange Greenich Grey Aqua Green Lavander Yellow Teal Barely off white Brownish Red Ugly Green Light purple Olive Very Dark grey Indiglo Nice Green midnight blue Bright puple Orange Baby Blue Bright obnoxious green Brick Light grey Hot Pink Pure purple kinda nice blue sea green Visited link: Black White Blue Red Green Gold Darkgrey Light Brown Navy Purple Peach Off White darker peach Dark Purple Light blue Salmon kinda hot pink More Off White Sienna Grean Beige Brownish off white Dark red Sky Blue pinkish red Dark orange Greenich Grey Aqua Green Lavander Yellow Teal Barely off white Brownish Red Ugly Green Light purple Olive Very Dark grey Indiglo Nice Green midnight blue Bright puple Orange Baby Blue Bright obnoxious green Brick Light grey Hot Pink Pure purple kinda nice blue sea green
Forms
In this section You can add many things such as links and other options
Add diffent size text. 1 is the smallest and 6 is the biggest.
Test it