
Originally Posted by
Beverleyh
Can you explain what exactly isnt working with relative paths - relatives paths where? In the js or the anchor links in your HTML? Are you sure the relative page location is correct and pages are uploaded?
Lots of things could be the issue so please post the link to your page as it will be easier to pinpoint the problem.
Hi Beverley,
Thanks for the speedy response.
The relative paths are in the js, as follows:
Code:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
anylinkmenu1.items=[
["Ecology and Conservation", "../services/ecology_and_cnservation/ecology_and_cons_services.html"],
["Green Infrastructure", "../services/green_infrastructure/green_infrastructure.html"],
["Recreation and Open Spaces", "../services/recreation_and_open_spaces/recreation_and_open_spaces.html"] //no comma following last entry!
]
All the downloaded scripts are in the root directory.
The site has not been loaded yet, as it's still in development.
I'm previewing the pages in IE - there's a facility to allow scripts to run.
(Oddly, the links occasionally work ok, but usually return the message: Oops, the page you are looking for could not be found).
The anchor link code on the page is largely as it started:
HTML Code:
<p><a href="http://www.dynamicdrive.com" class="menuanchorclass" rel="anylinkmenu1">Consultancy Services</a></p>
(I assume that I should change the reference to dynamicdrive to my own website url, when the site is loaded).
Thanks again,
Andrew
Bookmarks