I’m having trouble adding a menu that using JQuery, plus an addition .js file to function correctly. I’m a noob, so this question likely has a simple answer, and I think the problem is how I’m storing or referencing the additional .js file in my template.
I created a JavaScript template in my template group containing the extra ‘Accordion’ code. I referenced the general jquery code from Google (as the EE docs say) and added a reference to the ‘Accordion’ source template. See the example below (I had to modify the script tag to post this message):
script src="http://www.google.com/jsapi" /script
script type="text/javascript"
google.load("jquery", "1.2");
/script
script type="text/javascript" src="accordion" /script
Here is the original source code on the menu’s site:
script type="text/javascript" src="jquery.js" /script
script type="text/javascript" src="accordion.js" /script
script type="text/javascript"
jQuery().ready(function(){
// applying the settings
jQuery('#theMenu').Accordion({
active: 'h3.selected',
header: 'h3.head',
alwaysOpen: false,
animated: true,
showSpeed: 400,
hideSpeed: 800
});
jQuery('#xtraMenu').Accordion({
active: 'h4.selected',
header: 'h4.head',
alwaysOpen: false,
animated: true,
showSpeed: 400,
hideSpeed: 800
});
});This is the menu I’m trying to add <http://blog.evaria.com/wp-content/themes/blogvaria/jquery/index-multi.php>. Any help is apprecaited!