Results 1 to 4 of 4

Thread: Help with Relative path

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with Relative path

    1) Script Title: DD Drop Down Panel

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.htm

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

    I'll appreciated any help.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

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

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Depending upon what you actually mean, Snookerman's response:

    Quote Originally Posted by Snookerman View Post
    Code:
    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:

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    "/Images/arrow-down.gif" is working.
    Thanks
    Last edited by Lior; 12-02-2008 at 08:27 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •