background
|
|
RiscOS
Risc OS Info
All you need to know about Risc OS and more.
More icon

Computer
|
|
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!