Results 1 to 8 of 8

Thread: Jim's DHTML Menu v5.7 help

  1. #1
    Join Date
    Mar 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Jim's DHTML Menu v5.7 help

    Is there any way to add tool tips to this menu?

  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

    What exactly do you mean by tool tips? There are several kinds. Have you made any attempts?
    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    PLEASE: Include the URL to your problematic webpage that you want help with.
    Last edited by jscheuer1; 03-25-2005 at 05:31 AM.

  3. #3
    Join Date
    Mar 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem explained

    The menu I wish to add "tooltips" to is: http://www.dynamicdrive.com/dynamici...menu/index.htm I would like to "hover" on a link and have a text box appear with additional information about that link. The problem URL is: http://www.hawkfamilyhomepage.org/
    Thank you!

  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

    Just so you know I haven't forgotten about you, I'm looking at the code now. This is a very involved set of scripts. In addition to that, the links are activated via either the:

    window.open()

    or the:

    location.href=

    techniques depending upon if the target value of a link is set or not. These techniques do not lend themselves easily to adding tooltips. Had the technique been <a href="link">, adding the sort of tooltips you are asking for would be easier, just a matter of incorporating a title attribute. I will keep this idea on my back burner but, having done several thorough searches on the matter and having come up empty, I wouldn't hold my breath.

    As you may or may not know, often requests for help with this menu are referred to Jim, as it is his menu, have you tried contacting him?

    Sorry I can't be of more help at this point. If you find a solution PLEASE post back and let us know. If not, check back from time to time to see if we come up with anything here.

    Now, this to others in this forum - anyone else want to tackle this?

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

    OK, I've found one rather kludgy way to add tooltips to this menu. I have two assumptions to put forward:

    1) You do not want/need a tooltip for a menu item that opens a submenu.
    2) You are opening submenus onmouseover.

    Since I already see that #2 above is true on your site, we are part the way home. The answer (given a look at the documentation) is rather simple. For items not opening a submenu, their last parameter is 0. Simply set this parameter to the next unused number, let's say it is 8 and setup a:

    Code:
    menu[8] = new menu(etc.. etc...)
          menu[8].addItem("#", "", 22, "left", "Tool Tip Goes Here", 0);
    you will have to configure this menu 8 to have the look and position you want for the tooltip. You can make as many new menus like this as you need, one for each tip.

    One last step. If other items on the menu that includes the item you are making a tooltip for open submenus, you need to set param 18 (character at extreme right) to "" (blank) and manually insert the character you want used for this in each item's description (only for those opening a submenu).

    Remember the example.htm that came with the install. Well it used a custom.js file, for an example of what I mean, change Dynamic Drive's last parameter to 5 and add this at the end of the custom.js for that example:

    Code:
    	menus[5] = new menu(199, "vertical", 0, 0, 0, 0, "#ffffFF", "#ffffff", "Verdana,Helvetica", 8, "", "", "black", "black", 1, "gray", 2, ">>", false, true, false, false, 0, true, 4, 4, "black");
    	menus[5].addItem("#", "", 42, "left", "Dynamic Drive\'s Website\nScripts Galore", 0);
    Not the best job, but hey, the precise configuration is up to you, might want to lose the shadow and change the position, etc., etc.

  6. #6
    Join Date
    Mar 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank You! I'll give it a try & let you know how it works.

  7. #7
    Join Date
    Mar 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It works!! Thanks for the quick reply. See the result(s) at: http://www.hawkfamilyhomepage.org/

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

    That's great! And I see you even got it looking good in Mozilla as well as IE, something I neglected to warn you about or to mention the work around for. I'd still lose the shadow on the tips and use a non bold font but, it's your site. Interestingly, I had emailed Jim, the menu's author to ask him first before working things out. He said there was nothing at this time for tooltips. I sent him back telling him about our discovery. Thanks for letting us all know about your success.
    Last edited by jscheuer1; 03-26-2005 at 07:10 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
  •