[jQuery] Re: bind click event equal to mouseover

2008-05-21 Thread Wizzud
So you've got a hover on the A, and the A is the sole content of the LI, and you want a hover on the LI to do the same as the hover on the A? Sounds to me like you might just need to make the A a block element - li a{display:block;width:100%;} - then you wouldn't need a hover on the LI. On May 21

[jQuery] Re: bind click event equal to mouseover

2008-05-21 Thread Ariel Flesler
Something like this ? $('li').mouseover(function(){ $(this).find('a').click(); }); -- Ariel Flesler http://flesler.blogspot.com On 21 mayo, 12:07, paragasu <[EMAIL PROTECTED]> wrote: > On Tue, May 20, 2008 at 6:13 AM, Wizzud <[EMAIL PROTECTED]> wrote: > > > One way is to make the LI's mouseo

[jQuery] Re: bind click event equal to mouseover

2008-05-21 Thread paragasu
On Tue, May 20, 2008 at 6:13 AM, Wizzud <[EMAIL PROTECTED]> wrote: > > One way is to make the LI's mouseover add a class, the mouseout remove > that class, then set css to do what you want to the A element... > > $('li').hover( function(){ $(this).addClass('x') } > , function(){ $(th

[jQuery] Re: bind click event equal to mouseover

2008-05-19 Thread Wizzud
One way is to make the LI's mouseover add a class, the mouseout remove that class, then set css to do what you want to the A element... $('li').hover( function(){ $(this).addClass('x') } , function(){ $(this).removeClass('x') } ); style... li.x a {color:#ff9900;} On May 19, 1:34