background
|
|
Linux
Linux Support
A small area on the internet for Linux Support.
More icon

Tombstone
Tombstone Tuning
Home of tuning, projects and fast cars and boats.
More icon
|
|
Up Image
Navigation
Search this Site
Enter your search terms

Site Breadcrumb - You are here
|
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()

Cut, paste, and enjoy!