Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Archive > Archives of Old Posts > Mac Help/Tips

 
 
Thread Tools Search this Thread Display Modes
Old Nov 4, 2002, 11:08 PM   #1
big
macrumors 65816
 
big's Avatar
 
Join Date: Feb 2002
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
big is offline   0
Old Nov 5, 2002, 12:03 AM   #2
alex_ant
Banned
 
alex_ant's Avatar
 
Join Date: Feb 2002
Location: All up in your bidness
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.
alex_ant is offline   0
Old Nov 5, 2002, 11:28 AM   #3
FattyMembrane
macrumors 6502a
 
FattyMembrane's Avatar
 
Join Date: Apr 2002
Location: bat country
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).
FattyMembrane is offline   0
Old Nov 5, 2002, 11:32 AM   #4
big
Thread Starter
macrumors 65816
 
big's Avatar
 
Join Date: Feb 2002
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
big is offline   0

 
MacRumors Forums > Archive > Archives of Old Posts > Mac Help/Tips

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC