mootools accordion to top?

I have an accordion with long content.

When the accordion is triggered, how can I also get page to scroll to the top to see start of content?

Currently window stays put and just reveals the end of content.

example:
http://www.mondoditto.com/test/accordion/
open TEAM, then SERVICES

I know I must be missing something simple.

Thanks for help!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This may be doable but personally I don’t think that an accordion is appropriate with such long content.

Even if you get it scrolling to the top your next accordion trigger is way down the page and you cannot see all the triggers at the same time.

What about using Tabs or simply target show/hide layer.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I know it is kind of a funky arrangement… :slight_smile:

Nevertheless, interested to know how to do it. I am sure there must be a simple way.

I tried adding an anchor link to top of page on the same text that is the trigger for the Services section to get back to top, but that didn’t work…

I have seen on mootools forums that there is a bit of script to do what i am looking for but I am too newbie to understand how to integrate it:
http://www.mooforum.net/help12/accordion-sliding-screen-top-open-t918.html

onComplete:function(el){
if(el.getSize().y>0){
el.setStyle(‘height’,‘auto’);
}
el.scrollIntoView(true);
}

Thanks for any ideas!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options