You can remove existing nodes using the DOM. The removeChild
method allows any node to remove one of its child nodes. Simply pass a reference to the node you wish to remove. Any text or innerHTML elements within the node being removed will be removed along with it.
This simple and short JavaScript can be used to delay the loading of any particular image on a Web page. A smaller image is loaded, which can be transparent or blank, in place of the larger image. After a designated amount of time the larger image can be made to load in place of the smaller one.
A JavaScript-based library for managing browser history (back button) and providing support for deep linking for Flash and AJAX applications.
This JavaScript will allow your visitors to search a Web page for any matching characters. It can be set for the entire page or within a specific ID attribute. Simple to use and heavily annotated.
Want to spruce up your links without adding background images? This JavaScript will enclose your designated links in brackets. You can keep the other links separate, if you like.
This JavaScript provides functions for browsers which do not inherently support the entire JavaScript Core and supplies some useful functions PHP developers might wish they had access to.
When you start using Prototype, Scriptaculous, and other JavaScript libraries, you often end up with a dozen lines of script tags pulling in all of the code from different places. That would be fine if you never added a new library or never needed to swapped them out. This JavaScript will create a single JavaScript loader for each project that contains all of the scripts necessary.
Using this script, outbound links will open in a new window automatically. No need to add anything to the link. The script will also apply a different style to the outbound link to make visitors aware it is an outbound link. You don't have to worry anymore about targets and the appearance, especially if your customers have their own CMS.
This script reveals information, based on the user's selection in a drop down box. Can be used for a FAQ, contact info, and more. Short and sweet, with comments.