Code: Select all
subimage="/graphics/arrow.gif";
or
aI("text=Menu Text;url=/dir1/dir2/index.htm;");
Attempting to use a fully qualified URL instead such as "file:///F:/dir1/dir2..." is a bad idea, since it assumes your users will be running Windows and that their cd drive is always drive F.
Well, I've come up with this hack that works reasonably well:
1) Place your site content into a single directory with a unique name (e.g. DocumentRoot)
2) Place this snippet of JavaScript code into the top of your menu_data.js file:
Code: Select all
siteRootDir="DocumentRoot"; (same as directory name from step 1)
siteRoot="";
if (window.location.protocol == "file:") {
var h = window.location.href;
siteRoot = h.substr(0, h.indexOf(siteRootDir+"/") + siteRootDir.length);
}
Code: Select all
subimage=siteRoot+"/graphics/arrow.gif";
aI("text=Menu Text;url="+siteRoot+"/dir1/dir2/index.htm;");
Hope this helps someone with similar needs!
Marco Moreno
P.S. Suggestion: Perhaps Milonic could predefine a specific variable name (e.g. cdSiteRoot) and perform this magic behind the scenes so that urls don't have to be modified.