[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 pm, paragasu <[EMAIL PROTECTED]> wrote:
> is it possible i make one event equal to another event
> for example, if i put a mouseover on a  tags. automaticly,
> the a mouseover activated?
>
> so if i have a tags like link here 
> the link will be highlighted regardless of user put a mouserover on a
> tags or li tags?


[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(){ $(this).removeClass('x') } );
>
> style...
> li.x a {color:#ff9900;}
>
> On May 19, 1:34 pm, paragasu <[EMAIL PROTECTED]> wrote:
> > is it possible i make one event equal to another event
> > for example, if i put a mouseover on a  tags. automaticly,
> > the a mouseover activated?
> >
> > so if i have a tags like link here 
> > the link will be highlighted regardless of user put a mouserover on a
> > tags or li tags?
>

actually there is an event triggered when the mouse over at  tags.
what i want is, when the use mouse over at  the  event will be
triggered.
the  tags is a child of ... thanks


[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 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 pm, paragasu <[EMAIL PROTECTED]> wrote:
> > > is it possible i make one event equal to another event
> > > for example, if i put a mouseover on a  tags. automaticly,
> > > the a mouseover activated?
>
> > > so if i have a tags like link here 
> > > the link will be highlighted regardless of user put a mouserover on a
> > > tags or li tags?
>
> actually there is an event triggered when the mouse over at  tags.
> what i want is, when the use mouse over at  the  event will be
> triggered.
> the  tags is a child of ... thanks- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -


[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, 7:06 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> Something like this ?
>
> $('li').mouseover(function(){
>$(this).find('a').click();
>
> });
>
> --
> Ariel Fleslerhttp://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 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 pm, paragasu <[EMAIL PROTECTED]> wrote:
> > > > is it possible i make one event equal to another event
> > > > for example, if i put a mouseover on a  tags. automaticly,
> > > > the a mouseover activated?
>
> > > > so if i have a tags like link here 
> > > > the link will be highlighted regardless of user put a mouserover on a
> > > > tags or li tags?
>
> > actually there is an event triggered when the mouse over at  tags.
> > what i want is, when the use mouse over at  the  event will be
> > triggered.
> > the  tags is a child of ... thanks- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -