Use Math.max() and Math.min() to find the closest safe value. Use Math.round() to convert to an integer.
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.
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.
This function will remove all HTML tags from a string.
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.
A very simple image gallery. The script is short and includes comments to guide you along the way.
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.
Set an alarm that will play any sound from your computer. You can even select a snooze time after it sounds. Awesome!
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.