tds Posted July 14, 2007 Report Share Posted July 14, 2007 I am interested in creating a data cd with the contents of our Little League website for the past season. I'd like to have an HTML menu with links to each days version of the site (it changes daily) available when the cd is opened (it does not necessarily have to auto-run). I have saved the webpage for each date and have all this info contained in a folder on my hard drive. I want to burn a cd containing all the info used (jpegs, word and pdf documents and HTML content) over the past season and I have an HTML document already created with the appropriate daily links but when I burn it to cd none of the links work. They work fine when accessed on my local drive. How do I make the links relative to the cd's contents? thanks in advance. Link to comment Share on other sites More sharing options...
d_deweywright Posted July 15, 2007 Report Share Posted July 15, 2007 I am interested in creating a data cd with the contents of our Little League website for the past season. I'd like to have an HTML menu with links to each days version of the site (it changes daily) available when the cd is opened (it does not necessarily have to auto-run). I have saved the webpage for each date and have all this info contained in a folder on my hard drive. I want to burn a cd containing all the info used (jpegs, word and pdf documents and HTML content) over the past season and I have an HTML document already created with the appropriate daily links but when I burn it to cd none of the links work. They work fine when accessed on my local drive. How do I make the links relative to the cd's contents? thanks in advance. If you look at the links in your documents, they probably have the full path to the .HTML files, including the drive letter. That needs to go away. Assuming the html for the pages are all in the same directory, then it's just ... href="page1.htm". If there's a lower subdirectory involved, then it would be... href="subdirname/pagex.htm" Again, notice there's no drive letter. If it's in a directory "one over" from where the current page is, then you use the ".." notation. Two "dots" indicates to go up one level to the parent directory. So, if the link needs to go up one level then over to another directory, it would be: href="../june102007/page1.htm". Hope that helps! Link to comment Share on other sites More sharing options...
tds Posted July 15, 2007 Author Report Share Posted July 15, 2007 If you look at the links in your documents, they probably have the full path to the .HTML files, including the drive letter. That needs to go away. Assuming the html for the pages are all in the same directory, then it's just ... href="page1.htm". If there's a lower subdirectory involved, then it would be... href="subdirname/pagex.htm" Again, notice there's no drive letter. If it's in a directory "one over" from where the current page is, then you use the ".." notation. Two "dots" indicates to go up one level to the parent directory. So, if the link needs to go up one level then over to another directory, it would be: href="../june102007/page1.htm". Hope that helps! thanks so much for the help! sometimes I can't see the forest for all the trees... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.