Thanks, these are great, too!
-w

On Jun 11, 8:58 am, "a.roland" <[EMAIL PROTECTED]> wrote:
> There are several methods ..just to mention three:
>
> == 1 ==
>         $('ul li:first ~ li').mouseover(function(){
>                 $(this).addClass('red');
>         });
>
> == 2  ==
>         $('ul li:not(:first)').mouseover(function(){
>                 $(this).addClass('yellow');
>         });
>
> == 3 ==
> just give the concerning element a class you can check like:
> <ul>
>  <li class="first">something</li>
>  <li>another thing</li>
>  <li>a third</li>
>  <li>a final thing</li>
> </ul>
> ----
>         $('ul li').mouseover(function(){
>                 if(!$(this).hasClass('first'))
>                 {
>                         $(this).addClass('green');
>                 }
>         });

Reply via email to