PDA

View Full Version : Help with Relative path



Lior
12-02-2008, 02:38 PM
1) Script Title: DD Drop Down Panel

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm

3) Describe problem: How do i change the pointerimage src to be relative to root directory?

I'll appreciated any help.

Snookerman
12-02-2008, 05:42 PM
pointerimage: {enabled: true, src: ["../folderwithyourpics/arrow-down.gif", "../folderwithyourpics/arrow-up.gif"]},

jscheuer1
12-02-2008, 06:06 PM
Depending upon what you actually mean, Snookerman's response:



pointerimage: {enabled: true, src: ["../folderwithyourpics/arrow-down.gif", "../folderwithyourpics/arrow-up.gif"]},

could work out for you, though it only looks one level above relative to the page. Since there is no way of knowing from what you've told us where your page(s) is/are, the technically correct answer is:


pointerimage: {enabled: true, src: ["/path_if_any_to/arrow-down.gif", "/path_if_any_to/arrow-up.gif"]},

That will look from the root. If live, from the root of the domain. If this is a local page, from the root of the hard drive.

Lior
12-02-2008, 08:09 PM
"/Images/arrow-down.gif" is working.
Thanks