| Clock Cursor script | Flying images | Pick colors here | Cursor effect + | My main page | Bullet Cursor | Fullscreen script |
| Scrollbar script | Recomend page script | Engels + | Online Pet |
Link, Button & Window Scripts
onClick Alert Message
Navigation Buttons
Dialog Box with Confirm
Email Button
New Window
New Window with controllable options
New Window with controllable options Close Box
Status Bar Message
onMouseOver alert Message
onMouseOut alert Message
onMouseOver and onMouseOut Commands
Browser Test
Date and Time display
Page load with alert message
Confirm message before loading a Page
Scrolling status bar message
Scrolling banner
Form Scripts
onFocus Alert
onBlur form background color changer
Test if form is filled out before submission
Make your own pulldown navigation menu (like this TOC)
Temperature conversion calculator
Metric Length conversion calculator
Image Scripts
Click a button to change an image (without reloading page)
Alert Message when user aborts an image load
Load different image when first doesn't (automatically)
Confirm Message when user aborts an image load
Advanced Scripts
Counter that counts only YOUR visits to YOUR site
Here is the script:
<HTML>
<HEAD>
<TITLE>OnClick alert message</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function pushbutton() {
alert("Here is where you write what you want it to say");
}
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<A HREF="" onclick="pushbutton();">Click Here!</A>
</CENTER>
</BODY>
</HTML>
here is the script:
<HTML>
<HEAD>
<TITLE>History Buttons</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function nav(x) {
history.go(x);
}
</script>
</HEAD>
<BODY>
<CENTER>
<h1>History Buttons</h1>
<h2>Here are the two buttons made with navigator form buttons: </h2><P>
<FORM>
<INPUT TYPE="button" VALUE="GO BACK" onClick="nav(-1)">
<INPUT TYPE="button" VALUE="GO FORWARD" onClick="nav(1)">
</FORM>
<P>
<h2>And here is a custom button with a javascript link.</h2><P>
<A HREF=javascript:history.go(-2)><IMG SRC="images/back2.gif" BORDER=0></A>
</CENTER>
</BODY>
</HTML>
WARNING this script works only in Netscape 3.0 or higher
here is the script:
<HTML>
<HEAD>
<TITLE>Confirm Dialog Box
</HEAD>
<BODY BGCOLOR=FFFFFF>
<CENTER>
<H1>Confirm Dialog Box</H1><P>
<A HREF = "http://www.browserbydesign.com/" onClick="return confirm('Are you sure you are ready to leave the safe confines of our website');">When you click, a confirm dialog box displays. </a>
</CENTER>
</BODY>
</HTML>
Here is the script:
<HTML> <HEAD> <title>Email button <HEAD> <FORM> <INPUT TYPE="button" VALUE="send e-mail" onClick="self.location='mailto:[email protected]';"> </FORM> </BODY> </HTML>
Here is the script:
<HTML>
<body bgcolor=FFFFFF>
<CENTER>
<P>
<FORM>
<INPUT TYPE="button" VALUE="Click Here to open new Window" onClick='window.open("http://www.geocities.com");'>
</FORM>
</CENTER>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>Open new custom window</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function NewWindow() {
win2=window.open("http://www.somewhere.com","NewWindow","toolbar=no,directories=no,menubar=no,scrollbars=no,width=200,height=225");
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<input type="button" value="New Window" onclick='NewWindow();'>
</FORM>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>Open/close new custom window</TITLE>
<SCRIPT LANGUAGE="JavaScript">
hrefloc=this.location
// this assigns the current URL to the global variable hrefloc, called later
// in the script as a workaround for a problem involving accessing files from
// a local disk.
function NewWindow1() { //this defines the first window, accessed by button#1
window1=window.open("", "NewWindow1", "toolbar=no,directories=no,menubar=no,scrollbars=no,width=200,height=225");
window1.document.writeln("<Body bgcolor=ffffff>");
window1.document.writeln("<title>Whatever</title>");
window1.document.writeln("<center>");
window1.document.writeln("<FORM><INPUT TYPE='button' VALUE=Close onClick='window.close()'></FORM></CENTER>");
window1.document.writeln("</BODY></HTML>");
window1.document.close();
}
function NewWindow2() { //this defines the second window, accessed by button#2
window2=window.open("", "NewWindow2","toolbar=no,directories=no,menubar=no,scrollbars=no,width=200,height=225");
window2.document.writeln("<TITLE>Whatever2</TITLE>");
window2.document.writeln("<body bgcolor=ffffff>");
window2.document.writeln("<center>");
window2.document.writeln("<FORM><INPUT TYPE='button' VALUE='Close' " + "onClick='window.close()'>