Forums Archive Index > SmartMenus 5 > Issue with only ONE mouseover working
Date: 26 May 2005 9:59 pm
s_array.js Files
==============================
s_add(
{N:'boot',LV:1,MinW:250,T:240,L:'mouseY+20',P:false,S:s_CSSTop},
[
{U:'#',T:'&&New Items for New Recruitss'},
]
);
s_add(
{N:'barr',LV:1,MinW:250,T:255,L:'mouseY+21',P:false,S:s_CSSTop},
[
{U:'#',T:'&&T\'s, Tanks, and Sleeveless'},
]
);
s_add(
{N:'brig',LV:1,MinW:250,T:270,L:'mouseY+20',P:false,S:s_CSSTop},
[
{U:'#',T:'&&Pants and Shorts'},
]
);
s_add(
{N:'offi',LV:1,MinW:250,T:285,L:'mouseY+20',P:false,S:s_CSSTop},
[
{U:'#',T:'&&Hats and Accessories'},
]
);
s_add(
{N:'serg',LV:1,MinW:250,T:300,L:'mouseY+20',P:false,S:s_CSSTop},
[
{U:'#',T:'&&'},
]
);
s_add(
{N:'secr',LV:1,MinW:250,T:315,L:'mouseY+20',P:false,S:s_CSSTop},
[
{U:'#',T:'&&Boxers, Briefs, and Jocks'},
]
);
==============================
Then on the page itself
==============================
&&&&<a href="http://www.sgtbulldog.com/index.php?cPath=21" onmouseover="playSound(0);s_show('boot',event);" onmouseout="stopSound(0);s_hide();">Bootcamp</a><br>
<img src="images/line_break.gif" alt="" height="1" width="250" border="0"><br>
&&&&<a href="http://www.sgtbulldog.com/index.php?cPath=22" onmouseover="playSound(0);s_show('barr',event);" onmouseout="stopSound(0);s_hide();">The Barracks</a><br>
<img src="images/line_break.gif" alt="" height="1" width="250" border="0"><br>
&&&&<a href="http://www.sgtbulldog.com/index.php?cPath=23" onmouseover="playSound(0);s_show('brig',event);" onmouseout="stopSound(0);s_hide();">The Brigade</a><br>
<img src="images/line_break.gif" alt="" height="1" width="250" border="0"><br>
&&&&<a href="http://www.sgtbulldog.com/index.php?cPath=24" onmouseover="playSound(0);s_show('offi',event);" onmouseout="stopSound(0);s_hide();">Officers Club</a><br>
<img src="images/line_break.gif" alt="" height="1" width="250" border="0"><br>
&&&&<a href="http://www.sgtbulldog.com/index.php?cPath=25" onmouseover="playSound(0);s_show('serg',event);" onmouseout="stopSound(0);s_hide();">Sergeants Quarters</a><br>
</b><img src="images/line_break.gif" alt="" height="1" width="250" border="0"><br>
<b>&&&&<a href="http://www.sgtbulldog.com/index.php?cPath=26" onmouseover="playSound(0);s_show('secr',event);" onmouseout="stopSound(0);s_hide();">Top Secret</a><br>
==============================
The "PlaySound(0)" is for audio, but it's working fine. The only problem is only the first one is working "BOOT" everything else won't work
--> http://www.sgtbulldog.com/index2.php
To see the script working
Date: 27 May 2005 2:41 pm
You have used a comma symbol after the last menu item (it is actually the only one in your case) for all your menus. Remove these commas and it should work. Example:
s_add(
{N:'boot',LV:1,MinW:250,T:240,L:'mouseY+20',P:false,S:s_CSSTop},
[
{U:'#',T:'&&New Items for New Recruitss'}, // delete this comma
]
);