Text Changer onMouseover script
7
Scroll the mouse over my name to see the effect. CSS can be used to make the text exactly the same as that surrounding it.
Changing the Content of Elements Using innerHTML
4
If you don't need to support Netscape 4, code for changing the content of elements is very simple. This code can be used whether the elements are regular inline elements or positioned divs. You can change the content onmouseover and onclick.
Dynamic Timed Redirect
3
Redirect the user to a different Web page after a designated number of seconds, while displaying a countdown in the document title representing the number of seconds left before redirection.
getXML
3
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.
Obtaining the URL of the Referring Document
3
Use this snippet to obtain the URL which referred the user to that page. Be aware that on some servers this may not work.
Disable the Submit Button
3
Sometimes it is a good idea to disable the submit button so that the user cannot make multiple submissions. This snippet will do the trick. Very easy to use.
Removing Nodes Using the DOM
3
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 elements within the node being removed will be removed along with it.
Using the Target Attribute
3
At times you may need to launch certain links into a new window. The 'target' attribute is deprecated and is therefore not allowed when using XHTML with a strict doctype. Using this script, you will be able to keep your pages valid while also using the target attribute to open new windows.
Scrollbar Style
2
This script is simple CSS that allows the user to change the color and shadow properties of the scrollbar. The example here gives a blue background with whtie scrollbar face
Change Color onMouseover
2
This script makes color of text change when visitors move mouse over it.
Get Firefox
2
If your visitors are using one of those "other" browsers, this short script will display a graphic with a link to the Firefox Web site. (The graphic won't display if you're using Firefox to view this page.)
Window Print Method
2
Add a button to allow your visitors to print your Web page. Compact and simple, yet highly requested.
Print to Preview
2
Your visitors may not be familiar with style sheets for printing and don't see a 'print preview' in their browser. This script will provide them with a reliable print preview.
Copy to Page
2
This snippet will copy text entered into a form field and place it directly on the Web page.
JavaScript Includes
2
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 script will create a single JavaScript loader for each project that contains all of the scripts necessary.