Advertisement
Guest User

Untitled

a guest
Sep 27th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. window.addEvent('domready', function() {
  2. var myAccordion = new Accordion($('menu'), 'h2.menuheader', 'div.menucontent', {
  3. opacity:true,
  4. show: -1,
  5. duration: 300,
  6. alwaysHide: true,
  7.  
  8. onActive: function(menuheader, menucontent){
  9. menuheader.setStyle('font-weight', 'bold');
  10. menucontent.setStyle('display', 'block');
  11. },
  12. onBackground: function(menuheader, menucontent){
  13. menuheader.setStyle('font-weight', 'bold');
  14. menucontent.setStyle('display', 'block');
  15. }
  16. });
  17. });
  18.  
  19. window.addEvent('domready', function() {
  20. var myAccordion = new Accordion($('maincol'), 'h2.contentheader', 'div.content', {
  21. opacity:true,
  22. show: -1,
  23. duration: 300,
  24. alwaysHide: true,
  25.  
  26. onActive: function(contentheader, content){
  27. contentheader.setStyle('font-weight', 'bold');
  28. content.setStyle('display', 'block');
  29. },
  30. onBackground: function(contentheader, content){
  31. contentheader.setStyle('font-weight', 'bold');
  32. content.setStyle('display', 'block');
  33. },
  34.  
  35. });
  36. });
  37.  
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement