Results 1 to 3 of 3

Thread: menu_com.js

  1. #1
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default menu_com.js

    Hello,

    I am using menu_com.js (Ger Versluis 2000 version 5.5 24 December 2001) that I got from dynamicdrive.com. I would like to know if I or you can put something like an alt="" so when you hover the mouse over a menu item, it will show a small discription like you do when you hover over an image on the screen.

    I hope you understand my question and thank you in advance.

    Craig Stover

  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's the descriptive name of this menu script? I can't find it from what you've posted.

    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.

    If there is a way to include a title attribute for each link, that would do it. ex:

    <a href="some.html" title="Some Page!">Click Here</a>
    - John
    ________________________

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

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    A little more on alt vs. title...

    Quote Originally Posted by craigstover
    I would like to know if I or you can put something like an alt="" so when you hover the mouse over a menu item, it will show a small discription like you do when you hover over an image on the screen.
    The behaviour that you describe is believed by many, myself included, to be a mistake by a select few browser manufacturers.

    The alt attribute defines alternative text that is meant to replace the image if it cannot be rendered for some reason: the network fails to send, or corrupts the data; the browser cannot interpret the image format; the user has disabled the use of images; the user agent is a text browser, Braille device, screen reader, or aural browser. The text was never meant to be a tooltip. Moreover, the name of the attribute - alternative text - implies that the image and its replacement are exclusive, not complementary.

    As John suggested, the title attribute (usable with virtually all elements) is what should be used when tooltips are desired.

    Mike

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
  •