I''m trying to replicate a feature I saw on the University of Notre Dame site (http://nd.edu/). I have looked everywhere for a way to do the drop down navigation they have at the top, right of their page, but none of the resources I''ve found have all the features I want. I''m very green when it comes to javascript so the easier the implementation, the better:) I''ve tried scriptaculous and have been able to replicate the drop down feature here http://www.randyjensenonline.com/sandbox/scriptaculous/test/functional/effects_toggle_test.html but I need to make it so that when you have a tab already open, and click on a new tab, the open one closes and the new one opens. Any help at all is very much appreciated. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Brian Williams
2007-Oct-29 03:32 UTC
Re: drop down tabs open/close (prototype, scriptaculous)
small hack, not sure how others do it make a hidden div/ form input and set the innerhtml/value to the name of the div being shown when you click on the tab check the text of that div and slideup that div then slide down your div -- read up on the effect queue -- and then set the div/input field to the newest shown div, rinse and repeat. On 10/28/07, greenday45 <jensen.randy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I''m trying to replicate a feature I saw on the University of Notre > Dame site (http://nd.edu/). I have looked everywhere for a way to do > the drop down navigation they have at the top, right of their page, > but none of the resources I''ve found have all the features I want. I''m > very green when it comes to javascript so the easier the > implementation, the better:) > > I''ve tried scriptaculous and have been able to replicate the drop down > feature here > http://www.randyjensenonline.com/sandbox/scriptaculous/test/functional/effects_toggle_test.html > but I need to make it so that when you have a tab already open, and > click on a new tab, the open one closes and the new one opens. > > Any help at all is very much appreciated. Thanks! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---