Archive for the ‘JavaScript’ Category

Tooltips for Forms

Wednesday, October 17th, 2007 by Stan Slaughter

Create a tooltip for you web forms ! A tooltip is a small box containing which appears when you move your mouse over a hyperlink: Hover over me to see This visual element is useful in supplying additional information to the user without needing to take up addtional space on the screen. It ...

Replacing History

Monday, October 15th, 2007 by Stan Slaughter

How to prevent a page from being placed into a web browsers history. There are a lot of times when you want to disable a browsers "Back" button or delete items from a browsers history list. Unfortunately there is no function that lets you delete items from history, but you can use ...

AutoComplete

Wednesday, October 10th, 2007 by Stan Slaughter

Introduction Treat a forms input textbox like a drop down menu or like a standard text box with built in auto complete features! AutoComplete Demo This is a JavaScript function which has been designed to be easy to incorporate into existing online forms. It acts as an HTML control that integrates AutoComplete into ...

Finding the Position of an object

Tuesday, October 9th, 2007 by Stan Slaughter

There are many times when you need to use JavaScript to find the current position of an object on the screen. The object properties offsetTop and offsetLeft give the position of the object in terms of how far it is offset. The problem is that it is not how far you ...

Sort Lock Table

Sunday, October 7th, 2007 by Stan Slaughter

Easy-to-implement script creates tables that allow the body to scroll while the column headers remain fixed in place. Scroll up and down or click on the column titles to sort the table. Easy to use. Tested to work in IE6 and Firefox Demo Link