Latest Random JavaScript Tips http://www.webreference.com/js/tips/ Doc JavaScript's Tip of the Day Archive en-us Copyright (c) 2008 Jupitermedia Corporation. All rights reserved. sclark@jupitermedia.com (Scott Clark) nsegal@jupitermedia.com (Nathan Segal) Coloring Scrollbar Arrows (8/28/2000) http://www.webreference.com/js/tips/000828.html Add more color to your page. Learn how to modify the color of the scrollbar arrows on the fly. Defining Polymorphism (6/23/2002) http://www.webreference.com/js/tips/020623.html What are the three cornerstones of object oriented programming languages? Learn about the third foundation: polymorphism. Converting Dimensions for Printing (9/25/2001) http://www.webreference.com/js/tips/010925.html Did you know that the print template's settings are in inches while the printer expects them in 1/100 of an inch? Learn how to convert these dimension. Packaging a Single-Class Namespace (5/24/2002) http://www.webreference.com/js/tips/020524.html Do you know how to package a namespace? Here is an example for packaging a simple single-class namespace. Boosting Performance by Avoiding Dots (5/10/2000) http://www.webreference.com/js/tips/000510.html Want to improve the performance of your JavaScript? Avoiding dots in your code is both simple and effective. Initializing the style Object (10/6/2001) http://www.webreference.com/js/tips/011006.html Did you know that the style object is not initialized by the STYLE rule? Learn how to set the zoom property upon loading. JScript .NET's Classes (4/24/2002) http://www.webreference.com/js/tips/020424.html Did you know that JavaScript does not support classes? Learn about JScript .NET's class-based support. Delimiting the Main Code (6/21/2002) http://www.webreference.com/js/tips/020621.html Do you know how to delimit the main code section? Learn how JScript .NET is different from other languages. Changing Inline Images (8/19/2000) http://www.webreference.com/js/tips/000819.html How do you change an image when mousing over? out? Learn how to change a gif using very little programming. Detecting LayoutRect's Overflow (9/14/2001) http://www.webreference.com/js/tips/010914.html Do you know how to detect page overflow in a print template? Learn how to use the LAYOUTRECT's event handlers and properties to distinguish between page completion and page overflow. Setting Default Visibility (12/17/2000) http://www.webreference.com/js/tips/001217.html Do you know how to change the default visibility? Learn how to overcome differences between IE and Netscape 6. WMLScript's Bytecode (6/22/2000) http://www.webreference.com/js/tips/000622.html Do you know why WMLScript is a compiled once, run everywhere language? See how a 1071-byte WML code turns into a 446-byte bytecode. Deleting DOM Substrings (7/6/2001) http://www.webreference.com/js/tips/010706.html Do you know how to delete a substring from text node data? Learn how to shorten a DOM string in IE6/NS6. The Event Object Properties (1/5/2001) http://www.webreference.com/js/tips/010105.html Do you know how to find information about the event that just occurred? Learn how to use the e object. Modifying the Button's Banner (5/25/2000) http://www.webreference.com/js/tips/000525.html Do you know how to change a button face once you've clicked on it? Learn how to use the innerText property to control the button's display.