cdlong
02-13-2009, 03:19 PM
1) Script Title: AnyLink JS Drop Down Menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem: I was able to get the Drop Down menu to work, but now the links within each menu variable have an extra folder that I didn't put there. So the links go to the wrong spot when published. Has anyone else had this problem? See http://www.cdlbiz.com/form/company/company3.html.
For example, in my JS menu, these are the attributes:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
anylinkmenu1.items=[
["About Us", "company/company.html"],
["Management Team", "company/team.html"],
["Overview Presentation", "images/FormationOverview_908.ppt"]
]
Yet if you mouse over the corresponding link when it's published, the "About Us" link goes to www.cdlbiz.com/form/company/company/company.html instead of www.cdlbiz.com/form/company/company.html like its supposed to.
I realized something else. When the original file is not in a subfolder, the links are fine. But when I move the file to a subfolder, it adds an folder to the link. See http://www.cdlbiz.com/form/test.html. The links are how they are supposed to be under the company folder.
Any ideas? I use FrontPage.
Thanks!!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem: I was able to get the Drop Down menu to work, but now the links within each menu variable have an extra folder that I didn't put there. So the links go to the wrong spot when published. Has anyone else had this problem? See http://www.cdlbiz.com/form/company/company3.html.
For example, in my JS menu, these are the attributes:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
anylinkmenu1.items=[
["About Us", "company/company.html"],
["Management Team", "company/team.html"],
["Overview Presentation", "images/FormationOverview_908.ppt"]
]
Yet if you mouse over the corresponding link when it's published, the "About Us" link goes to www.cdlbiz.com/form/company/company/company.html instead of www.cdlbiz.com/form/company/company.html like its supposed to.
I realized something else. When the original file is not in a subfolder, the links are fine. But when I move the file to a subfolder, it adds an folder to the link. See http://www.cdlbiz.com/form/test.html. The links are how they are supposed to be under the company folder.
Any ideas? I use FrontPage.
Thanks!!