On Fri, Jan 2, 2009 at 5:26 PM, MarkAtHarvest <m...@harvestinfotech.com> wrote:
>
>
> I am trying to run a javascript for a dropdown menu, I need to access the
> down.gif from images/down.gif , I have two links from where I need to
> include this javascript
>
> one link is in index.jsp in root folder and other is /admin/list.jsp. Now
> the question is if I access the images with location images/down.gif, I can
> access it from my index.jsp which is in root folder but my admin/list.gsp is
> able to access these images.
>
> How do I specify the absolute path, so from any level my javascript can
> access the images. I tried /images/down.gif but that does not work
>

/images/down.gif should work from anywhere if the images directory is
at root, unless you've got some rewrite thing going on with stuff
that's in /admin.

Anyway, you might be better off leaving the img path to your CSS
(either relative to root, or the stylesheet) and toggle the image in
JS with a classname.

Reply via email to