The categories button toggling the menu or the sliding menues?
The categories button should be something like
Event.observe(''cat_button'', ''click'',
function() {
$(''menu'').toggle();
var button = $(''cat_button'');
button.className = button.className == ''pressed'' ?
'''' : ''pressed'';
});
The Sliding menues would be a combination of Effect.move and css like
#menu { overflow: hidden; }
You *could* always look at the source. It''s JavaScript, after all ;)
HTH
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---