Archive for October, 2007

Who cares about Firefox?

Monday, October 29th, 2007 by Stan Slaughter

Who cares about Firefox? Have you ever noticed that those people who vehemently argue for writing pages which work in Firefox frequently design pages which are totally unusable if viewed on a 800x600 video screen? Yet almost the same number of people who use Firefox, 13% of the browser market as of ...

CSS Text Drop Shadow

Sunday, October 28th, 2007 by Stan Slaughter

CSS Text Drop Shadow How to add cross browser drop shadow to text without the use of images using CSS and non-obtrusive JavaScript. I've wanted to use drop shadows on text for quite awhile. Unfortunately there is just no easy way to do this on a web page without the use ...

CSS for Beginners

Tuesday, October 23rd, 2007 by Stan Slaughter

Here are some links that may be of some help for those just starting out with Cascading Style Sheets. They are among the best links on the web not only for those who are just starting out, but for those who need a CSS resource to refer back to ...

Validate Phone Number

Thursday, October 18th, 2007 by Stan Slaughter

Simple Phone number validation function that returns "true" if the phone number is in the format 555-555-5555 Useful when validating input from a form prior to writing it to a database. (Note the use of regular expressions used to validate the formatting) [code="js"]/** * This function validates that the provided string is a ...

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