I'm trying to write a Javascript to set a relative path for my files, s
I don't have to type in an absolute path. I know that I need to someho
define the root directory, likely using /, then I need to have th
function check to see where the file sits, then add the appropriat
../ infront of it.
Unfortunatly I'm totally stumped as to what I need to do. A
ex-co-worker of mine used to have a function similar to this, howeve
we've lost touch.
Anyone have an idea how this might work? It makes it so much easier t
place items into webpages without having to hardcode the entire pat
for everything.
Regards,
John William
-
b1azes