This JavaScript code creates a message box and shows an alert after the page gets downloaded. Use the test cases to invoke methods of the message box directly.
AJScroller is a cross-browser, DHTML scroller. Full HTML syntax is supported, which means you can add images, format and align text quickly and easily. The scrolling speed and pause delay can be configured and controlled dynamically.
A simple example of setting a textarea by clicking one of several buttons.
Creates a list of buttons. If there are too many buttons in a list, they can be scrolled.
This JavaScript helps you to convert a set of words to sentence case or title case. Ugly but quick JavaScript to convert a given sentence to title case.
Here's a helpful little script for anyone who has ever made a form and wants to have the cursor pop into their first field when the page is loaded. The visitor can start typing straight away, without moving the mouse.
I needed a form for students enrolling in training courses. I couldn't find exactly what I needed out there, so I built my own (borrowing some code from others (credits given in code)). The really important thing was that if, after changing the data, the applicant altered the number of students or hit the back button from the next page, the existing data would not be lost.
Feel free to do whatever with this code, no credit to me required. If you make it better, though, please feel free to e-mail me! Create a form that dynamically changes the number of fields available based on a select list value.
Here's a useful script for a form that needs to know the visitor's country. It saves giving a huge list of countries in one box. For the USA, it also asks the state.
Use this JavaScript to add HTML controls to your forms. This example uses the <input> tag.