.DWT's - Dynamic Web Template

C

Cerebral Believer

I have a Dynamic Web Template and not all the pages that have this DWT
attached are at the same level of the directory structure. This creates a
problem, in that mouse-over/roll-over images do not display correctly. The
way I have coded the mouse-over/roll-over images, it seems that the original
file shows ok, but as soon as I mouse-over the image, it dissapears and I
get an X, which remains on mouse out.

Other than not putting the images in a non editable region, what other
soloutions could there be to this? I am reluctant to use multiple DWT's
because then I would have to update them all to apply site wide changes...

Regards,
C.B.
 
K

Kevin Spencer

Use a root-relative URL to the images. A root-relative URL begins with a '/'
which indicates the root folder of the web.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.
 
R

Ronx

In the JavaScript, use root relative or absolute paths to the images.
Example:
Root relative:
<img src="/images/image.gif">

Absolute:
<img src="http://www.example.com/images/image.gif">

Neither of the above will display correctly in a disc-based web, the second
will only display correctly if the images are on the server, and you have
an open internet connection.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top