Friday, February 27, 2009

[jQuery] Re: Please, help me convert this flash menu into a jQuery menu?

You can do that with pure CSS:

http://jsbin.com/eyivu
http://jsbin.com/eyivu/edit

with jQuery:

$('#menu li a').hover(function(){
$(this).stop()
.css({ backgroundColor: '#C66' })
.animate({ marginLeft: '+=5px' }, 200);
}, function(){
$(this).stop()
.css({ backgroundColor: '#ACA' })
.animate({ marginLeft: '-=5px' }, 200);
});

That's kind of self-explanatory, you'll find all about the working
details at docs.jquery.com

cheers,
- ricardo


On Feb 27, 3:37 pm, 123gotoandplay <wesweatyous...@gmail.com> wrote:
> Hi there,
>
> Could anyone get me started to convert this flash menu to a jquery
> menu?www.bldd.nl/jsproblems/convertToJQuery.html
>
> It's a dropdown menu with submenu's sliding in from the left.
>
> regards,

No comments: