Results 1 to 2 of 2

Thread: Path Error in ddlevelsmenu.js

  1. #1
    Join Date
    Feb 2009
    Posts
    24
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default Path Error in ddlevelsmenu.js

    1) Script Title: All Levels Navigational Menu (v2.1)
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...menu/index.htm
    3) Describe problem:


    Hi,

    The pages I created in the root folder has no problems in accessing and showing the arrow graphics files in the folder ddlevelfiles.

    However, when I created a page in a folder in the root directory, the arrow gifs no longer show up. It can show up only when I copy the arrow graphics within that folder itself.

    I tried to add ../ in front of the path in the file ddlevelsmenu.js, but it does not work.
    arrowpointers:{
    downarrow: ["../ddlevelsfiles/arrow-down.gif", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]

    Can someone please help me how to path correctly? Thank You.

    Original code in ddlevelsmenu.js file
    arrowpointers:{
    downarrow: ["ddlevelsfiles/arrow-down.gif", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]
    rightarrow: ["ddlevelsfiles/arrow-right.gif", 12,12], //[path_to_right_arrow, arrowwidth, arrowheight]
    showarrow: {toplevel: false, sublevel: true} //Show arrow images on top level items and sub level items, respectively?


    I appreciate assistance regarding this problem.

    Thank You very much in advance.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    If pages that use the menu are scattered across various directories on your site, you should just use absolute URLs inside the .js file to get to the arrow images:

    Code:
    downarrow: ["http://mysite.com/ddlevelsfiles/arrow-down.gif", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]
    rightarrow: ["http://mysite.com/ddlevelsfiles/arrow-right.gif", 12,12], //[path_to_right_arrow, arrowwidth, arrowheight]
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    mindretreat (02-25-2009)

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
  •