Use this snippet to insert a node after another node. Quite handy in laying out Web pages.
Obtain the contents of an XML element and convert it to text. This script is great for using with Ajax-type applications, when it’s neccessary to send back the contents of an element to the server without knowing what’s there.
This code returns the position of a given element in a given container, relative to other elements of its type. Very useful for finding position indexes of list items, pictures, form items, and more.
When a layer is inside another layer, it’s style.left and style.top positions can both be ‘0’ but the layer itself can be 500 pixels away from the actual margin. These functions will return the true offset.
Use this snippet to get the rendered style of an element. Quick and simple to implement.
The document.getElementById method is very useful but isn’t supported in early browsers. To define the method for use in those older browsers, just add this snippet to the beginning of your scripts.
Ever run into a situation where you want to get an array of all elements with a specific attribute? Or even want elements with a certain value for that chosen attribute as well? Just add this code snippet to your script and your problem will be solved.
Use this snippet to display text on a Web page when testing and doing design layout work. The amount and type of text can easily be changed, according to your preferences and needs.
A function that returns an array of elements based on DOM element, tag, and class name. For instance, getElementsByClassName(document, ‘tr’, ‘info’) will return an array of all “tr” tags under the document node having the “info” class.
Use this script to target which files you will include on a designated Web page. Easy to set-up and use.
A very simple script which activates objects in Explorer 7 so people don’t have to click on Flash to activate.