Pre-built Unobtrusive Scripts
Note that the earlier written of these scripts use a loop and window.onload processing to run the script as soon as the required id has loaded into the browser. These particular scripts are therefore not compatible with other scripts that use onload.
All of the scripts in this group are added to your page in the same way.
- Seasonal Background
This script displays one of four different backgrounds behind part of your page depending on the time of year.
This script adds a hangman game to your web page.
- Add to Favourites
This script adds a link to allow your visitors to bookmark the page in those browsers that support it.
- Easter Calculator
- Image Gallery
- Orthodox Easter Calculator
A variant of the above Easter calculator that calculates the dates according to the Orthodox church.
The following scripts are completely unobtrusive with the script tags at the bottom of the web page.
- Dropdown Menus
This patch allows you to use dropdown menus even if your visitors are still using Internet Explorer 6.
- Day of Week Image
This script swaps images depending on what day of the week it is.
- Time of Day Image
This script swaps images depending on what time of the day it is.
- Unobtrusive Collapsible Menus
This script allows you to have multiple collapsible menus on your page all identified by similar ids.
- Scrolling Ad
A new version of the script that I first wrote for About.com back in 2004.
- Fly in Ad
A new version of the script that I first wrote for About.com back in 2005.
- Wandering Hearts
Another script that I first wrote in 2005, now completely rewritten.
- Rotating Text and Images
- Loan Calculators
This rewrite of my calendar script is far more flexible than the old one and can be used in many different ways.
This rewrite of my continuous text marquee script means that you can easily convert any block tag in your page into a marquee by just adding a class and a height.
- Vertical Scroller
Like the marquee script but scrolls vertically instead of horizontally.
- Modal Dialogs
A far less obtrusive and more flexible version of my lightbox script.
- Concentration/Memory Game
This version of the game which you play against the clock doesn't use any images.
- Noughts and Crosses / Tic Tac Toe
You can't beat the computer in this game, the best you can do is a draw.
- Typewriter Text
Have your content display one character at a time.
- Making Change
The latest version of my function that takes an amount of money and tells you the smallest combination of coins and notes that can be used to make that amount.
- Analog Clocks
Now rewritten so that you can add this effect to any page by just adding a script tag at the bottom.
- Lotto Picker
Rewritten to remove the bias and to make the script unobtrusive with cleaner field validation.
- Follow the Mouse
A simple script to get an element to follow the mouse around the page.
- Counting With Buttons
- Displaying Your Local Time
The latest version of one of my earliest scripts.
- Limiting Selections
Simply wrap a group of checkboxes inside an element that has an id and limit how many of them can be selected.
- Piano Chord Calculator
This script will help music sites display chords.
- Distance Calculator
A new unobtrusive version of my calculator for displaying the distance between cities.
- Distance Calculator with Times
This one displays times as well as distances.
- Marking New Entries
Specify a number of days that entries are considered to be new and attach a date to various ids to indicate when they were added and this script will display a "new" image alongside the entries for the specified number of days.
- Unobtrusive Slideshows (Optional Captions)
The latest version of my slideshow script allows for optional captions and alt text and allows as many slideshows in the one page as you like.
- Countdown Timer
This countdown timer counts down to a specified time in a specific timezone, you can also place as many countdowns as you like in the same page.
- Failsafe Remote Images
This script allows you to replace any remote images your page references that fail to load with an alternate local image. It is also the only script I know of that sill needs to use onload.
- Expanding and Shrinking Text Banner
This script grabs people's attention by animating some text.
- Event Calendar
The newest version of my event calendar script shares all the date processing part with any other date processing on your site.
- Ideas Machine With Optional Links
This script allows you to set up an array of ideas and present one at random to each visitor.
- Watercolour Mixer
This script allows your visitors to see the effect of mixing different colours together on the screen before they try to do the same with their watercolour paints.
- Paint Mixer
A variant of the watercolour mixer that shows how other types of paint mix together.
- Light Mixer
Another variant of the watercolour mixer that shows how different coloured light mix together.
- Modal Image Box
Combining several scripts together we can easily convert links to images into in-page modal images.
- Concentration Game With Images
This variant of my concentration/memory game script allows you to use either one set or two sets of images - if you use two sets them there needs to be a connection between the corresponding images so that they can be matched.
- Toggle Menu
This script allows you to show or hide up to 20 menus on your page by clicking on the preceding element. Which are hidden is remembered between visits using a cookie.
- Distance Calculator
This simple distance calculator uses an array containing all of the distances between your selected places and presents your visitors with a form where they can select a start and end location to find out the distance between them.
- Distance and Time Calculator
This variant of the above distance calculator also includes estimated travel times.
- Cryptogram Script
- Spring After the Mouse
Now completely unobtrusive.
- Body Mass Index Calculator
- Body Fat Calculator
An equivalent upgrade to the Body Mass Index calculator so that they once more are equivalent.
- Biased Random
This function randomly returns results from one array based on the probabilities defined in a second array.
- Creating an Array of Plot Points
This function returns an array of x and y coordinates that satisfy a formula.
- Unblocking Ads
A discussion on ad blocking and how we can detect it. Also a script that tells you if Google ads have been blocked.
We now have Package Deals to create and maintain your website for you.
(includes special prices for community groups and hobby clubs)