Site Search

 

Resources & Shopping

Add To Your Collection
Photographic Repair
Clubs & Associations
Get Published!
Heritage Centres & Museums
Hundreds Of S.A. Links
Salvation Army Blogs
Members Area
Forums
Instrument Repair
Auctions
Salvation Army Prints
Gordon Rossiter Artwork
Woodbridge Books
SA 78rpm Records
Site Shop
Photo Galleries
------------------------------
Salvation Army History
Salvation Army Firsts
The Timbrel
Instrument Factory
Generals Slide Show
S.A. History On-line
Booth Family Tree
S.A. In Latin America
Salvation Army Symbols
The Christmas Kettle
The I.S.B.
Eastbourne Riots
The Empress Of Ireland
William McKenzie
Sunbury Court
CMHA Archives
Bios of the first 15 Generals
William Booth Locomotive
Devil's Island
Words Of The Founder
Hadleigh Farm Colony
Booth's Drum
Maiden Tribute Case
Limelight Department
Skeleton Army
------------------------------
Free Downloads
SA Myspace Layouts & Pics
Clipart & Page Headers
Salvation Army Puzzles
Desktop Enhancements
Collectors Software
Internet Explorer Skins
S.A. E-Booklets
Outlook Express Stationery
MSN Messenger
Yahoo! Messenger Skins
S.A. Web Browser
Mobile Phone Wallpapers
PowerPoint Presentations
PowerPoint Templates 
------------------------------
Postcards
William Booth
S.A. Officers
Social Work
WWI At The Front
Salvation Army Bands
Salvation Army Trophies
Miscellaneous Postcards
USO Clubs Of WWII
Generals Of The S.A.
------------------------------
Philately
Benham's Silk Covers
Stamps Checklist
Dubious S.A. Covers
The First S.A. Stamps
Switzerland S.A. Stamps
USA S.A. Centenary Stamp
Denmark S.A. Stamps
Guyana S.A. Stamps
Zaire S.A. Stamps
Saint Lucia S.A. Stamps
Trinidad & Tobago Stamps
FDC Catalogue
------------------------------
Webmaster Tools
Free Java Scripts
Web Template & Graphics
Hosted CGI Apps
Get Your Site Listed
Free Web Hosts
Musings Of A Web Designer
------------------------------
Image Gallery
William Booth
Catherine Booth
The Booth Family
Notable Officers
Salvation Army Buildings
Art & Cartoons
UK Corps Bands
UK YP Bands
Staff & National Bands
Non Brass Bands
Other Bands
Songster Brigades
Salvation Army Posters
Salvation Army Prints
Film Stills
------------------------------
Miscellaneous
Virtual Greeting Cards
Salvation Army Poetry
Visitors Collections
Salvation Army Badges
Byers Choice
Zim's Nutcrackers
WWI Donut Recipe
Salvation Army Quiz
Free For All Links
Private Collectors
Listen To The Band!
------------------------------
Site Info
Terms & Conditions
About Us
Contact Us
Collectors Survey
Link To This Site
Site Map
Webmaster Resources > JavaScript

JavaScript


Scripts to enhance and add functionality to your site

Below you will find some commonly used JavaScript.

Please note that all these scripts are free for use but you must not delete any headers that claim copyright or ownership of that script.

If you are after a particular script there are literally thousands of sites that offer free cut 'n' paste JavaScript. Just do a quick search on Google for "free javascript" and then take your pick! :-)
 


Pop Up Window
This script allows you to install a pop-up window which is launched when a visitor clicks a link. See below for an example.
Of course you will need to put some of your own information into the script to allow it to work for you. First you will need to know the name of the page you want to display in the window and them replace 'mypage.htm' with the name of yours.
Next you may want to change the size of the window. This is done by altering the width and height values in the script.
You will also want to change the wording of the text link. This is done by changing Open Window to whatever you want it to say.

Click for example


Alert Box
This small alert box pops up when a visitor enters your page. You can use this to draw their attention to site updates, changes, special event and offers, anything you can think of really. All you need to do is alter the script to incorporate your message. See below for an example.

Click for example


Close Window Text Link
A very simple script that allows you to provide a "close window" text link. Particularly useful on pop up windows. See below for an example.

Click for example


Cross Browser No Right Click Script
This script enables you to protect images and text on your site. While it is by no means a total solution to protecting your site content it does act as somewhat of a deterrent. Having said that this script is particularly effective if used in conjunction with a frames site. See below for an example.

Click for example


Auto Page Forward
This script will need to be placed between the <HEAD> and </HEAD> tags of your page. To customize the script so you can seamlessly forward your visitors onto your site simply change the URL in the script to your own.
 
 


Non Underlined Links
Here's a useful little piece of script that allows you to remove all underlining from you hyperlinks. Good if your putting links in a block of text. The script must be placed between the head tags for it to work.


Non Underlined Links With Hover
Again, this script needs to be inserted between the <HEAD> and </HEAD> tags of your page. This is slightly different from the one above as it not only removes the underlining from a hyperlink but when the mouse pointer is passed over it it will change colour and become underlined. You can change the HEX code to a colour that is appropriate for your site. (The HEX code is the bit after the # mark in the script)


Back Buttons
Another favourite I'm asked for is a "BACK" button that emulates the back button on the browser. This is a relatively simple script and can be altered to use an image, text, or a standard HTML button. See the scripts below for some examples.
To emulate your browsers "Forward'' button you can use the same scripts as above by simply replacing the history.back with history.forward

If you want a standard HTML button use this script:

<INPUT TYPE="button"VALUE="Go back"onClick="javascript:history.back(1)">

and it will look like this!

  
If you want to use an image of your own you will need to use this script:

<a href="javascript:history.back()"><img src="your_image.jpg"border="0"></a>

and it will look like this!


 
If you want to use plain old text then you will need to use this script:

<a href="javascript:history.back()"><b><font face="Arial" size="3">Go Back</font></b></a>

and it will look like this!

Go Back  


Form Based Navigation

To save space and to provide a compact  way of giving your visitors access to your pages, you could  use a form-based, drop-down jump navigation system. This is a good idea if you have many pages and only a small amount of space to list them in.
To use this script simple change the text in each 
<OPTION VALUE="your_page.htm">Your Page so you would replace "your_page.htm" with the name of your page and Your Page with the title. You can repeat this as many times as you like. Not however that one is marked as selected. This tells the script which page to display by default, usually the home page.


Quick Tips:

Display messages in browser status bar on link hover:
<a href="index.htm" OnMouseOver="self.status='Go to my homepage!';
return true" onmouseout="self.status=''; return true">Visit this page.</a>
Sample: Visit this page.
Adding a Title attribute to your links creates a mini-popup description:
<A HREF="http://www.sacollectables.com" TITLE="Collectables, Biographies, Resources & More">Salvation Army Collectables</a>
Sample: Salvation Army Collectables