garymm
06-24-2003, 07:21 PM
I am very new to JavaScript, and never had any real teacher, so be patient with me. I am making a menu, which can be viewed (in an earlier form, but still applicable) at the link. the menu (http://homepage.mac.com/garymm/new/) It works as I want it to, but my code is really long. To get every other layer to hide when a new one is made visible, this is the code I use:
onMouseOver="document.luis.src='images/LuisBig.jpg';MM_showHideLayers('Layer1','','show');MM_showHideLayers('Layer2','','hide');MM_showHide Layers('Layer3','','hide');MM_showHideLayers('Layer4','','hide')"
as you can see, I just repeat the hide command over and over again. could you please show me the correct syntax for combining all the layers into one "hide" command? thanks for
onMouseOver="document.luis.src='images/LuisBig.jpg';MM_showHideLayers('Layer1','','show');MM_showHideLayers('Layer2','','hide');MM_showHide Layers('Layer3','','hide');MM_showHideLayers('Layer4','','hide')"
as you can see, I just repeat the hide command over and over again. could you please show me the correct syntax for combining all the layers into one "hide" command? thanks for