J
Jonathan
I am creating a CD-ROM based website template. Things work fine under
Windows but when I try to run the site under Linux the path is messed
up. Therefore my JavaScript functions misinterpret the root to be the
root of the filesystem instead of the root of the cd. Any cd I make
will need to run on Windows and Linux systems and the filesystems and
the way the cd's are mounted are always different. For example:
Windows root path for a cd:
-- D:\
-- /
Linux root path 1 for a cd:
-- file:///media/cdrom/index.html
-- /media/cdrom
Linux root path 2 for a cd:
-- file:///dev/cdrom/index.html
-- /dev/cdrom
This would make an absolute link like this:
/images/logo.gif
The only solution that I have been able to come up with is to use a
variable on every page that puts a prefix like this "../../" in front
of any link.
My question: Does anyone know of a way to determine the root path of
a CD that would make what I am trying to do work?
Thank you,
Jonathan Duncan
Windows but when I try to run the site under Linux the path is messed
up. Therefore my JavaScript functions misinterpret the root to be the
root of the filesystem instead of the root of the cd. Any cd I make
will need to run on Windows and Linux systems and the filesystems and
the way the cd's are mounted are always different. For example:
Windows root path for a cd:
-- D:\
-- /
Linux root path 1 for a cd:
-- file:///media/cdrom/index.html
-- /media/cdrom
Linux root path 2 for a cd:
-- file:///dev/cdrom/index.html
-- /dev/cdrom
This would make an absolute link like this:
/images/logo.gif
The only solution that I have been able to come up with is to use a
variable on every page that puts a prefix like this "../../" in front
of any link.
My question: Does anyone know of a way to determine the root path of
a CD that would make what I am trying to do work?
Thank you,
Jonathan Duncan