home / experts / javascript / column66 |
|
Changing the ColorOne way to modify an element's appearance on the page is to set its Mouse over me to see my over color. Then mouse out to see my out color.Here is the HTML code that implements it:
Notice that the text has three colors. The first color is the default color (black) which is being used upon loading (and reloading) of the page. The other two colors ( The second way to modify an element's appearance on the page is to change one of its object's properties. Each property reflects an attribute of the HTML element. The following image switches every time you mouse over and out of it:
Here is the HTML code for the above
Notice that we display here three GIFs. The first one ( Every object fires a
Here is the code that implements the above pair of images:
Notice how we access other elements. The left image is labeled with How to change the font (size and family) |
Produced by Yehuda Shiran and Tomer Shiran
Created: August 14, 2000
Revised: August 14, 2000
URL: http://www.webreference.com/js/column66/***PASTE FILENAME HERE***