Use Math.max() and Math.min() to find the closest safe value. Use Math.round() to convert to an integer.
Delayed Image Loader
Use this script to delay the loading of a particular image. It can be used to delay the loading of large images or banner advertisements. A smaller image is loaded first, which can be transparent or blank. After a designated amount of time the larger image will load in place of the smaller one.
DHTML Tooltip Generator 3
Sometimes the HTML “alt=” isn’t enough to relay the detail you’d like it to. Here is a tool that will allow you to give your users more interactive tooltips. This script will allow you to create a custom DHTML tooltip box on your site.
Remove HTML Tags
This function will remove all HTML tags from a string.
Ajax Loader 2
Use this script to load XML and HTML files with XMLHTTPREQUEST. In the div id=EchoTopic tag, just add the name of the file to load and the element to display the file in, usually a div element.
Next-Previous Image Gallery
A very simple image gallery. The script is short and includes comments to guide you along the way.
ID Tracker
Save a visitor’s referral ID in a cookie ID on their computer. Then, you can you can access that ID cookie from the rest of your site. Useful to help you pay affiliate commissions or track Web site referrals.
Alarm Clock
Set an alarm that will play any sound from your computer. You can even select a snooze time after it sounds. Awesome!
Text Sections
This script allows a user to read a volume of text, without having to scroll the page and without having to load different pages. This makes for easier maintenance as only one page needs to be updated, yet the content is visible to search engines. Very useful for large amounts of text.
Window Position
Do you not where window.open() opens your new windows? Using this JavaScript, you can actually have the new window open wherever you want! Look at our example to see what we mean! Really neat!