[jQuery] Re: List ul slideDown/Up Menu

2008-05-10 Thread andrea varnier
On 9 Mag, 23:11, Panman [EMAIL PROTECTED] wrote: Andrea, when I changed to hover() the stopPropagation() effected negatively. Once I removed that it started working ok. Also, what is variable e when passing it to the function? Thanks e stands for event (you can use the entire word as well).

[jQuery] Re: List ul slideDown/Up Menu

2008-05-09 Thread Panman
Hi, thanks for the reply. I've uploaded what I had to my test site. http://admin.stma.k12.mn.us/_assets/template/new.tpl.html I thought the code would get the child ul, entire sub-menu, and slide up/down. Also looked at Accordion but thought it was more than I needed. Since, I already have the

[jQuery] Re: List ul slideDown/Up Menu

2008-05-09 Thread andrea varnier
not sure but you could try something like this, to get more specific... $('#Main_Nav li:has(ul)').mouseover(function(e) { e.stopPropagation(); $(this).children('ul').slideDown('normal'); }).mouseout(function(e) { e.stopPropagation();

[jQuery] Re: List ul slideDown/Up Menu

2008-05-09 Thread Panman
Getting closer! I changed from using the mouseover() and mouseout() to hover(). That now seems to be working properly. The only issue at this point is that it doesn't slide down on the first hover. When the page loads and the mouse is over the li it just shows the list as the CSS does. Then when

[jQuery] Re: List ul slideDown/Up Menu

2008-05-09 Thread Panman
Andrea, when I changed to hover() the stopPropagation() effected negatively. Once I removed that it started working ok. Also, what is variable e when passing it to the function? Thanks On May 9, 11:25 am, andrea varnier [EMAIL PROTECTED] wrote: not sure but you could try something like this, to

[jQuery] Re: List ul slideDown/Up Menu

2008-05-08 Thread [EMAIL PROTECTED]
Hello, Panman! Welcome. It would help if you posted a link to your work page. Without seeing your actual code, it looks like you have every second- child li sliding up down with every mouseover, which would kind of explain the problem ;) To make life easy you could use the jQuery UI Accordion