P
PETE
hi folks,
copied a handy little slideshow script that works fine, but placing the
slideshow in a dreamweaver template, then creating HTML "child" files in
sub-folders, renders the array's path invalid. function runs from an
external JS file.
array element is like this:
Pic[0] = 'images/slideshow/0.jpg' ... etc
thought I could put in the fwdslash in the path like this:
Pic[0] = '/images/slideshow/0.jpg' ... etc
but it does not work.
any way of denoting the path in JS so that it will always be relative to
root?
thanks,
PG
copied a handy little slideshow script that works fine, but placing the
slideshow in a dreamweaver template, then creating HTML "child" files in
sub-folders, renders the array's path invalid. function runs from an
external JS file.
array element is like this:
Pic[0] = 'images/slideshow/0.jpg' ... etc
thought I could put in the fwdslash in the path like this:
Pic[0] = '/images/slideshow/0.jpg' ... etc
but it does not work.
any way of denoting the path in JS so that it will always be relative to
root?
thanks,
PG