www.webcodingtech.comCoding Technologies for the Web |
Home | | | Php | | | JavaScript | | | SQL | | | HTML | | | Server Admin | | | Tools | ||
![]() | ||||||||||||||
|
|
Changing the color of a Table cellIt is simply amazing all the things you can do with JavaScript. Here is a quick example of how you can change the background color of the cell of a table when the user mouses over that cell.
Here is an example of how this works.
Pretty nifty don't you think? JavaScript code like this is really handy when creating for example menus, you can change the color on mouseover and have a link in the cell. That way you avoid the extra cost of using images instead of text. This technique can also be used with a mouse click.
Here is an example of how this works.
Instead of using the mouse up and down events, you could toggle the switch on a single mouse click.
Here is an example of how this works.
|
|
http://www.webcodingtech.com