Webmonkey
Powered by Atomz.com



Quick Reference:

• Javascript Code Library
HTML Cheatsheet
Special Characters
Color Codes
Browser Chart
Stylesheet Guide
Unix Guide
Glossary
Domain Registries

Reference   JavaScript Code Library

This function changes the background color of one or more DIVs or SPANs.

Usage: WM_swapLayerBgcolor('layerName1','newColor1','layerName2','newColor2', ...);

Example: <a href="#" onMouseOver="WM_swapLayerBgcolor('myDiv', 'red', 'myOtherDiv', 'green');" onMouseOut="WM_swapLayerBgcolor('myDiv', 'blue', 'myOtherDiv', 'yellow');"><img name="myImg" src="off.gif"></a>

Requires: WM_checkin()

License: Webmonkey Public License

Cut, paste, and enjoy!


Feedback  |  Help  |  About Us  |  Contribute  |  Jobs
Advertise  |  Privacy Statement  |  Terms and Conditions

Copyright © 1994-2000 Wired Digital Inc., a Lycos Network site. All rights reserved.