Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Need help with Accordion Navigation Menu

Need help with Accordion Navigation Menu

Locked

Views: 1,748

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
6 May 2010, 1:43 PM
#1
skrillnet avatar

skrillnet

New Zenner

Join Date:
May 2010
Location:
Arkansas
Posts:
33
Plugin Contributions:
0

Need help with Accordion Navigation Menu

Hi, I have a site under construction, and we decided to use zen cart after the client had seen a concept of the site.

Unfortunately, after about 3 days of constant searching, I can't figure out how to use a mootools accordion for the categories section.

Any help would be great, here is the original concept of the site (without zen)

https://www.bassfishingtackle101.com

and here is a link to the zen version thus far

https://www.oxbowcreations.com/zen

Thanks!

6 May 2010, 3:29 PM
#2
skrillnet avatar

skrillnet

New Zenner

Join Date:
May 2010
Location:
Arkansas
Posts:
33
Plugin Contributions:
0

Re: Need help with Accordion Navigation Menu

just an update, now the only problem i am having with it is that it gives me a js error

toggler is undefined

here is the relevant js, it is based on mootools

window.addEvent('domready', function(){

	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
		
		opacity: false,
		//display: -1,
		alwaysHide: true,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#ff6600');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#ff9900');
		}
	});

		
});

thanks!