Instead of specifying a relative path to smoothmenu.htm, which can be different depending on where the page showing the menu is:
contentsource: ["smoothcontainer", "../../smoothmenu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
You can make a small change to the .js file that supports an absolute URL to it within your own domain:
Code:
contentsource: ["smoothcontainer", "http://www.mysite.com/smoothmenu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
To do this, inside ddsmoothmenu.js, find the below line, and add to it the line in red:
Code:
var $headers=$mainmenu.find("ul").parent()
setting.contentsource[1]=setting.contentsource[1].replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
That should do it.
Bookmarks