Thanks James!

On Thu, May 14, 2009 at 6:49 PM, James <james.gp....@gmail.com> wrote:
>
> Slight typo near the end.
>
> $(document).ready(function() {
>     $('li.a').hover(
>          function() { $(this).addClass('move'); },
>          function() { $(this).removeClass('move'); }
>     );
> )};
>
> On May 14, 3:47 pm, James <james.gp....@gmail.com> wrote:
>> $(document).ready(function() {
>>      $('li.a').hover(
>>           function() { $(this).addClass('move'); },
>>           function() { $(this).removeClass('move'); }
>>      )};
>> )};
>>
>> On May 14, 3:35 pm, Calvin <cstephe...@gmail.com> wrote:
>>
>> >   Hi,
>>
>> >   I was able to get this script to work and was wondering if there was
>> > a better/proper/more efficient way of writing it. Here is the script:
>>
>> >   $(document).ready(function() {
>> >       $('li.a').hover(function() {
>> >          $(this).addClass('move');
>> >   });
>> >     $('li.a').mouseLeave(function() {
>> >        $(this).removeClass('move');
>>
>> >   )};
>> > )};
>>
>> >   Thanks for your time,
>>
>> >   Calvin Stephens

Reply via email to