Return to Snippet

Revision: 498
at July 17, 2006 03:54 by perelin


Initial Code
function SCHMOE_onOffElement() 
{ 
	var i, p, v, obj, k;
	var args=SCHMOE_onOffLayers.arguments;
	for (i=0; i<(args.length); i++) 
	{
		if ((obj=MM_findObj(args[i]))!=null) 
		{ 
			if (obj.style) 
			{ 
				obj=obj.style; 
				if (obj.display == 'none') { v='block'; }
				if (obj.display == 'block') { v='none'; }
				if (obj.display == '') { v='none'; }
			}
			obj.display=v;
		}
	}
}

Initial URL

                                

Initial Description
// v6.0 SCHMOE Mod v.2: 
// switches between (display:'block';) and (display:'none';)
// bsp: MM_SCHMOE_showHideLayers('swissmap');

Initial Title
SCHMOE_onOffElement

Initial Tags
css

Initial Language
JavaScript