Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Path location 2

Status
Not open for further replies.

k4ghg

Technical User
Dec 25, 2001
191
US
I want to create an HTML menu for a CD with sub directories and would like some help in determining how to setup access to files in sub folders. I am not certain the letter (i.e., D, E) of the CD Drive, but assuming I put my main menu in the root and have file1.html in folder1, and file2.html in folder2, how would I access these files when I select their menu options?

Would this be correct? <href = "..//folder1/file1.html> Thanks
 
If you are at the root then there is no .. (one directory up) for you to go to. I would use
Code:
<a href="file:folder1/file1.html">My new doc</a>
which will look for a directory called folder1 in the current directory, which would be root if that's where your calling file lives.

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Try either

Code:
<a href="../folder1/file1.html">

or

Code:
<a href="/folder1/file1.html">

The second example will reference from the root of the CD regardless of where within the structure it's placed.

Either should work.

Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top