script.aculo.us effects
script.aculo.us has some javascript effects that are installed with rails. i just figured out how to use them. i put a highlight on the recent posts part of the menu for when it expands. i also put a "less" link under the expanded recent posts that shrinks back to just 5 recent posts when clicked. didn't take too long to figure out how to do that. i just made another function called less_cats, plus a view associated with it. you can see the hightlight code:
link_to_remote( "more", :update => "recent_posts",
:url =>{ :action => :more_cats },
:complete => visual_effect(:highlight, "recent_posts"))
0 Comments:
Post a Comment
<< Home