Results 1 to 6 of 6

Thread: Jim's DHTML Menu 5.7 rollover image

  1. #1
    Join Date
    Oct 2004
    Location
    Dallas, TX
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jim's DHTML Menu 5.7 rollover image

    I am trying to use a rollover image (such as the arrows) with this menu.

    In the Config.js to implement a rollover I have it pointed to the following which works.
    "rollover:graphics/tridown.gif:graphics/tridown.gif"

    If I try to create a template I can set everything up in the template no problem. The new line would be
    "rollover:../graphics/tridown.gif:../graphics/tridown.gif"

    The problem occurs if the page created from the template is not in the same subdirectory level. If it is one up or below the directory of the template I recieve "x" instead of my image since the location of the graphic is not the same as specified in the HTML code. I figured the easiest way to remedy this would be to point to the actual web location of the image, such as "http://www.panthercreekhog.com/newsite/graphics/tridown.gif".

    I have tried several variations to point to the file including
    "rollover:http://www.panthercreekhog.com/newsite/graphics/tridown.gif:http://www.panthercreekhog.com/newsite/graphics/tridown.gif"

    It seems that the Colon is making it fail. Does anyone know how to correct this?

    Thanks
    Paul

  2. #2
    Join Date
    Oct 2004
    Location
    Dallas, TX
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is my question to complicated for this forum? If so can someone point me to some books that I could reference.

    thanks

  3. #3
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Jim's DHTML menu is not written by Dynamic Drive so we can't offer as good support.
    Try emailing Jim, the author, for more help.

    Also, please try not to bump your own threads.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  4. #4
    Join Date
    Oct 2004
    Location
    Dallas, TX
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I did try to email him and the email was rejected.

    What do you mean bump my own threads?

  5. #5
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Rejected? How do you mean?

    Thread bumping is starting a thread, not getting a reply and putting it back on the New Posts list by posting yourself again, to attract attention. It's not too important not to, but it can be seen as rude by other people Don't worry.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  6. #6
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow

    Quote Originally Posted by pawebb
    I am trying to use a rollover image (such as the arrows) with this menu.

    In the Config.js to implement a rollover I have it pointed to the following which works.
    "rollover:graphics/tridown.gif:graphics/tridown.gif"

    If I try to create a template I can set everything up in the template no problem. The new line would be
    "rollover:../graphics/tridown.gif:../graphics/tridown.gif"

    The problem occurs if the page created from the template is not in the same subdirectory level. If it is one up or below the directory of the template I recieve "x" instead of my image since the location of the graphic is not the same as specified in the HTML code. I figured the easiest way to remedy this would be to point to the actual web location of the image, such as "http://www.panthercreekhog.com/newsite/graphics/tridown.gif".

    I have tried several variations to point to the file including
    "rollover:http://www.panthercreekhog.com/newsite/graphics/tridown.gif:http://www.panthercreekhog.com/newsite/graphics/tridown.gif"

    It seems that the Colon is making it fail. Does anyone know how to correct this?

    Thanks
    Paul
    Paul,

    I played around with the menu and found your answer for you!

    I moved all files to scripts, edit browser.js line 1 from included/browser.js to scripts/browser.js. The Web page calls the files from scripts/config.js now.

    Also, don't edit the tags, if page is in root, images in root/graphics and script is in root/script, leave the script pointing to graphics/rollover.img. As the page pulls the script it will decode the images from the root/graphics location.

    I got it to work the way you described, goodluck!
    Last edited by NiteStalker; 10-15-2004 at 02:50 AM.

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
  •