Creating Website to be run off CD

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

makermet

New Member
Impact
0
I'm putting together a "website" which will only ever be run from a CD. For design purposes it'd be most sensible to create all the links as relative to the site root (therefore, I can use a few template documents and never need to change the links to basic images and html source files for use in IFRAMES, no matter where the actual page is stored.

Problem is, if you try and view pages that have objects linked via 'site root' links on a local computer, it can't display them properly. The only way to do it seems to be to link everything via a document relative path: but this is annoying because it'll mean putting an images folder into every folder of the site, and duplicating a few source html files and a few basic images in every folder of the site.

What am I doing wrong? I hope I've explained myself properly.

Thanks in advance to anyone who can help, it's driving me nuts.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
are you trying to link to a higher directory than than the directory that your currently in?

if so

add../ infront of the url

for example ../images would go to the very top of the sites sructure. even if you was in a nother directory.

hope iv'e explaned this cleerly :)
 
0
•••
What's the file structure you're using?
 
0
•••
i have hosted a website for a few weeks on my mp3 player, while i was transferring hosting, and it worked fine, if your in /games and you wanna go to /games/games2/games3 you would put the link as games2/games3 and so on, if you were in /games and wanted to go to /images, you would use ../images and so on blah blah
 
0
•••
xtreme, you hosted a website off a MP3 player? That's hillarious. :)

Maker, I think Gemini's suggestion is the way to go. If you're using directories, there should be no reason to duplicate the images directory in every subdirectory.

For files in root <img src="./images/image.jpg">
For files in subdirectories <img src="../images/image.jpg">

Any reason you can't do it like that?
 
0
•••
well i had hardly any space on my computer, so i installed easyphp on my g: drive which was my mp3 player, it worked, and was quite fast, it has a light flashing when its reading data, it was doing that all the time, and is the CD like an interactive CD you wanna make, or is it actually for hosting a site on?
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back