Results 1 to 4 of 4

Thread: jQuery Multi Level CSS Menu #2 - no arrows when pages located in subfolder

  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default jQuery Multi Level CSS Menu #2 - no arrows when pages located in subfolder

    1) Script Title: jQuery Multi Level CSS Menu #2

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...el_css_menu_2/

    3) Describe problem: Hi! Thanks for superb menu and script! My question - I have scripts located in mysite/scripts folder, images in mysite/images folder and css in mysite/CSS folder. Relevant paths in css and js files changed accordingly. On pages located in mysite/ folder everything works OK, but on pages in mysite/subfolder/ folders menu itself works but no down/righ arrows visible. Would appreciate your assistance.

  2. #2
    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

    Inside the jqueryslidemenu.js file, near the top is (emphasis added):

    Code:
    //Specify full URL to down and right arrow images (23 is padding-right to add to top level LIs with drop downs):
    var arrowimages={down:['downarrowclass', 'down.gif', 23], right:['rightarrowclass', 'right.gif']}
    These filenames and paths, if relative, will be relative to the page that is using the script, not to the script. If you have, as you say, two or more pages on different paths that are using the script, you must use the absolute path to these images (the full URL), like:

    Code:
    http://www.mydomain.com/images/down.gif
    Use the exact path in effect on your server.

    An alternative is to use the network path. The equivalent network path for the above absolute path would be:

    Code:
    /images/down.gif
    Note: No leading dots, these make the path relative. In a network path the first slash (/) represents the root of the domain.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, the absolute path fixed the problem (but the network path didn't).

  4. #4
    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

    Glad it worked out for you. When changing things in your files though, there is always the possibility that things may be cached, or that a typo may creep in. Network paths work. But, as long as you are happy with the result, who am I to complain.
    - John
    ________________________

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

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
  •