background
|
|
Games
Ruffnecks Gaming Gaming for everyone
More

Tombstone
Tombstone Tuning Home of tuning, projects and fast cars and boats.
More

Games
Ruffnecks Gaming Gaming for everyone
More

Tombstone
Tombstone Tuning Home of tuning, projects and fast cars and boats.
More
|
|
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!