PDA

View Full Version : Nav Menu Help


venusdesign
02-07-2006, 05:52 PM
Hi,

I've created a nav. menu. I would like to have a sub-menu drop down when one of the nav. buttons is rolled over. (click the link & roll over the 'services' button click here (http://venusdesign.biz/qsearch/home.html))

here's the thing i can't quite figure out. if i make the hit area the size of the button the sub-menu appears but will disappear when you roll out - which means the person won't be able to get to the sub-menu selection. if i make the hit area big enough to include the button & the sub-menu it will stay - but it will also show when the person hasn't selected the button (like if you hold the mouse directly under one of the other buttons).

i guess i could have the viewer have to click on the 'services' button before the sub-menu drops down - but before i do that i wanted to see if anyone in here has a better solution.

any ideas will be very appreciated.

thx,
jr

venusdesign
02-08-2006, 04:48 PM
ok - i've been thinking about this & have an idea.

currently i have the 'services' button hit area so it includes the button and the sub nav menu. as i stated the problem is that the sub-menu appears if the mouse is over the sub-menu & not necessarily the the button.

so, is it possible to set a variable for the mouse position and have the script check to see if it is over the services button on the initial mouse over. if it is over the services button the menu will appear - if not then nothing appears. then the on rollOut can still be utilized as normal to make the sub-menu recede . . .

so i guess what i'm needing is a little guidance on the actionscript part of this . . . how do you write a conditional statement that checks the mouse position to see if it is within x / y coordinates.

come on i know there got a be a guru lurking about that can help :D