url problem?

S

SStory

I made a header control with built in menu. It works great. It is in the
root dir.
Then I made some files in a subdir to protect them.

When I place the header control on them, it of course can't go to the
root/images directory to get it without ../images/whatever

is there a way to make the control always know how to get it from
myroot/images/whatever?

NO matter what page or what directory it was in.

I will be using an ISP and hear at home--two different names, so I wanted to
avoid absolute root dir names.

Thanks.
 
J

John Saunders

SStory said:
I made a header control with built in menu. It works great. It is in the
root dir.
Then I made some files in a subdir to protect them.

When I place the header control on them, it of course can't go to the
root/images directory to get it without ../images/whatever

is there a way to make the control always know how to get it from
myroot/images/whatever?

NO matter what page or what directory it was in.

I will be using an ISP and hear at home--two different names, so I wanted to
avoid absolute root dir names.

Try "~/images/whatever.gif.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top