M
MarkInNY
I've made a nice banner with image rollovers for the top of my page in Adobe
Photoshop 6/ImageReady. Since I have triple-digit number of pages to
create/update, I made a dynamic template to help speed-up page creation and
quicken page updates. I had ImageReady export the HTML and setup the display
of the images in CSS (instead of making a table), plus it created some
JavaScript to handle the rollovers.
Everything works fine, except that the relative links (i.e.-
images/bannerimgs/image_01.jpg) don't change to reflect where it is in the
site's directory tree. Therefore, if I make the template off the root, then
apply it to a page in a subdirectory, none of the relative links work because
it's still showing the same path as if it was from the root. FrontPage will
change the relative links in hyperlink tags in the page, but not in the
JavaScript.
The only work-around I've been able to come up with is to create multiple
templates of the same template, just change the javascript relative URLs in
each template depending on what page it will be applied to. This to me seems
like an inefficient way of doing it. Is there any way of making the
javascript code more "universal" while still maintaining the relative paths
so that I can use just ONE template for all pages - even ones buried 2 to 3
subfolders deep? Is there a way to "fool" FrontPage? I'd rather avoid using
static URLs.
Photoshop 6/ImageReady. Since I have triple-digit number of pages to
create/update, I made a dynamic template to help speed-up page creation and
quicken page updates. I had ImageReady export the HTML and setup the display
of the images in CSS (instead of making a table), plus it created some
JavaScript to handle the rollovers.
Everything works fine, except that the relative links (i.e.-
images/bannerimgs/image_01.jpg) don't change to reflect where it is in the
site's directory tree. Therefore, if I make the template off the root, then
apply it to a page in a subdirectory, none of the relative links work because
it's still showing the same path as if it was from the root. FrontPage will
change the relative links in hyperlink tags in the page, but not in the
JavaScript.
The only work-around I've been able to come up with is to create multiple
templates of the same template, just change the javascript relative URLs in
each template depending on what page it will be applied to. This to me seems
like an inefficient way of doing it. Is there any way of making the
javascript code more "universal" while still maintaining the relative paths
so that I can use just ONE template for all pages - even ones buried 2 to 3
subfolders deep? Is there a way to "fool" FrontPage? I'd rather avoid using
static URLs.