how is my jquery hero ul > li effects all ul
Hi guys,
I'm going crazy! I can't figure out how to set up my menu correct. Yes it works correct on firefox etc etc. but as you can guess ( i love my mac) internet explorer had a fault. When you go over the ul.top all menu will go up, except the menu's after the ul.top in my html.
i tried to number all ul.top like ul.top1 ul.top2 etc etc but it will still not work!
I think i do something wrong at line 4 $this.
www.uproductions.nl
- $(document).ready(function() {
- $(".top").hover(function() {
- $("ul > li").css({'z-index' : '10'})
- var $this = $(this),
- offset = ($this.find('li').length * -20);
- $this.stop().animate({ marginTop: offset }, 350 );
-
- },function(){
-
- $("li.top").stop().animate({ marginTop: '0px'}, 150 );
- $("ul > li").css({'z-index' : '0'},350)
-
- });
- });
Is there anyone how can solve my problem
I am really thankful!
The stone