|
|
#1 |
|
HTML on a cd Help
I am trying to create a video CD, one where a viewer can open a document, and using a standard web browser, can browse through photos or html pages like on a standard unix box. But how do I refernce "links" or photos?
ie, top level is always denoted with "/" so a `jpg' file to be referenced from a web site may appear as "/images/family/ben.jpg" in its corrosponding html format but how do I do it from the cd drive, the cd being the top level?
__________________
akk |
|
|
|
0
|
|
|
#2 |
|
Don't use absolute directories - use ".." to ascend the directory tree.
E.g. If the CD is the root drive and you want to make a link from "/blue/red/yellow/index.html" to "/images/family/ben.jpg", instead of referencing "/images/family/ben.jpg" in your "img src" or "a href", you would use "../../../images/family/ben.jpg". The first ".." puts you in /blue/red; the second one puts you in /blue; the third one puts you in /; and from there you can start to descend the tree again. |
|
|
|
0
|
|
|
#3 |
|
actually, as long as you have a folder named "images" in the top level of the cd, as well as the index file, "/images/family/ben.jpg" will work just fine. just imagine that the cd is a folder with your index.html file at the top level (or wherever you're going to put it) and just make all of the references relative to that point. you can copy all of the files to the cd and open them up in a web-browser before you burn it just to make sure that they work (even edit them right on the cd).
|
|
|
|
0
|
|
|
#4 |
|
I tried that on the cd, but not as an image *doh*
good call, I'll ty 'em both tonight, thanks guys! anymore hints or tips?
__________________
akk |
|
|
|
0
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| html email margin/padding problem on iphone | SailorTom | Web Design and Development | 2 | Jan 11, 2012 03:15 AM |
| Online forms / HTML help needed! | idrewuk | Community Discussion | 2 | Jan 24, 2011 09:24 PM |
| Help with some HTML/Mailing List code...? | idrewuk | Community Discussion | 2 | Jan 16, 2011 05:32 PM |
| Hi, how do I make a auto launch HTML on a CD | clacknut | Mac Programming | 4 | Mar 25, 2009 09:04 PM |
| Need Help with HTML on homepage. | Remus | Mac Applications and Mac App Store | 6 | Mar 13, 2003 12:46 AM |
All times are GMT -5. The time now is 03:03 PM.




Linear Mode

