Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

brekpaen

macrumors newbie
Original poster
Dec 11, 2007
3
0
I hope this is the proper location for this question please redirect me if not.


I am trying to generate a CD-Rom from a PC and have it work on a MAC. The CD is rather simple just one HTML file with about 20 images and links to pages displaying the images. I want it to run off of the CD-ROM.
It works fine on a PC but on a MAC it will only load the page and frames and not any of the images but when I drag all of the filesto the desktop it works just fine. I have all the images placed in a subfolder ("images") so I call them via images/file.jpg in the HTML.
Why does it work on the Desktop but not when its on the CD? Any help would be greatly appreciated. Thanks.
 

wrldwzrd89

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
The most common cause of issues like these is not using 100% relative paths. By relative path I mean a path that doesn't start with a protocol, but rather one that is relative to the current directory. Examples:

Absolute path (Mac OS):
http://file://Volumes/Disc 1/images/file.jpg

Absolute path (Windows):
http://file://F:\images/file.jpg

Relative path:
images/file.jpg

Relative path to a file in a directory above the current one:
../directory/file.ext
 

brekpaen

macrumors newbie
Original poster
Dec 11, 2007
3
0
File Location on CD

My code is just lines like these for 20 different images- and one centered image all have just this relative code.

<a href="images/ravel.html"><img src="images/ravel.jpg">

I just have one HTML file sitting next to a folder titled "images" with all the images and other html files. None of the images load on the CD but do when placed on desktop. I don't have access to a MAC so I cant figure out what path it thinks its looking for when they are on the CD.

What would change when files are dragged to the desktop?
 

wrldwzrd89

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
My code is just lines like these for 20 different images- and one centered image all have just this relative code.

<a href="images/ravel.html"><img src="images/ravel.jpg">

I just have one HTML file sitting next to a folder titled "images" with all the images and other html files. None of the images load on the CD but do when placed on desktop. I don't have access to a MAC so I cant figure out what path it thinks its looking for when they are on the CD.

What would change when files are dragged to the desktop?
That is very, very strange. In theory, nothing should change when the files in question are dragged to the Desktop - if they don't work on the CD they shouldn't work on the Desktop either. I have no idea what the problem is. :confused:
 

brekpaen

macrumors newbie
Original poster
Dec 11, 2007
3
0
well thats discouraging:(. Thanks for trying, any ideas on where I should go with this question and who might know?
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
If you can get hold of a copy of Toast for Mac, it can probably handle this automatically, with a Mac+PC CD...
 

techgeek

macrumors member
Jun 11, 2004
94
0
UK
I'll bet it's something to do with case sensitivity in the path/filename on the CD that is being ignored on the HDD.
Maybe windows is ignoring the case while the Mac is not.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.