Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function(){
- // Expand & Collapse Elements
- function hideAll() {
- $('ul.expand li.trigger')window.scrollTo(0,0).next().slideUp().end().removeClass('open');
- }
- $('ul.expand li.trigger').filter(':first').addClass('top').end().next().hide().end().click(function(){
- if($(this).hasClass('open')) {
- return false;
- } else {
- hideAll();
- $(this).addClass('open').next().slideDown();
- }
- });
- });
- </script>
Add Comment
Please, Sign In to add comment