Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 27th, 2011  |  syntax: None  |  size: 0.97 KB  |  views: 92  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.