PDA

View Full Version : Website not on the Web - hyperlinks



RBLMissi
October 25th, 2002, 01:34
I'm attempting to create a family genealogy/recipes/photos/music Website using Notebook on my C: drive to burn onto CDs to give to my family & friends. I only know pretty basic HTML.

I found a shellexe. and created an autorun.inf so the CD automatically starts when inserted in the CD-ROM drive.
The first page, index.html, boots up in the browser fine. The link to the Contents page works fine. The links to the subpages works fine.

My problem is, I can't get Back to the Contents page from the subpages. I used A HREF=SoCoCD/contents.html, SoCoCD being my root directory(?), and where the contents.html file is.

Also I created a music folder in the SoCoCD directory to have one location to keep all the songs...I don't know how to explain the trouble...the code like EMBED SRC=SoCoCD/Music/song.mp3 won't work in a file that's like in SoCoCD/Pictures/baseball.html.

I'm not sure, but I think it may want a drive letter like E:// to make the links right, but what if others people use different drive letters for their CD-Rom? I have E: and F: both myself, but I used to have D:

If anyone can understand what I'm talking about, I'd greatly appriciate any help.
Thanks, ~Missi

Jan
October 25th, 2002, 01:40
Hi Missi and welcome :)

Try leaving out the SoCoCD/ from the links?

RBLMissi
October 25th, 2002, 01:52
Hi Jan,

If my files are set up like:
{Folder}SoCoCD
.....{Folder}Pictures
..........{Folder}Baseball
.....{Folder}Music

If I'm in the Baseball folder, wouldn't I need to go back 'up' to the SoCoCd folder, and back 'down' into the Music folder? (Sorry I don't know all the proper terminology for this.)

I'm pretty sure, if I'm remembering correctly, when I make a website on the web, I couldn't be in the Baseball folder and link directly to the Music folder. I have to link all the way back through http://www.site.com/folder. Only in the case of the CD there is no http:// to link back through.

Thanks again ~Missi

Jan
October 25th, 2002, 01:59
Well I have mine in a folder on my hard drive, and I always test the links before I upload, I just use the straight whatever.html as the link, not folder/whatever.html :)

RBLMissi
October 25th, 2002, 03:02
Yes, Jan, linking the straight .html files would work if all the files are in the same folder.

As usual, after hours of research, only after posting my question here, did I finally stumble across the answer I needed.
Apparently there's a distinction between "absolute" links, "expanded URL" links, and "relative" links.

What I needed was the "relative" link. I don't know the why's or how's, but for example, if I'm in folder SoCoCD/Recipes/Peach, and I want to link back to my Contents.html page in the main SoCoCD folder, I have to use A HREF="../../Contents.html" to show that the file I want to link to is 2 directories up from the file I'm linking from.

Just in case anyone else ever needs to know this.

Thanks for your assistance! ~Missi

Jan
October 25th, 2002, 03:12
Thanks for getting back on that and indeed it might just come in handy to help someone in future who is trying to do the same thing.

I am too lazy to use different directories (too confusing too ;)), so they all go in the same folder, both on the hard drive and when uploaded to my host :o