Results 1 to 7 of 7

Thread: Image Map

  1. #1
    Join Date
    Jan 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Map

    Is it possible to use Tooltip linked to an image map? There are a couple of references to this in the forum, but no answers! Does anyone know how to achieve this?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ooops!

    DD Image w/ description tooltip
    http://www.dynamicdrive.com/dynamici...agetooltip.htm

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Certainly. Just put the onmouseover= and onmouseout= handlers into your <area> tags rather than <a> tags.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jan 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the advice. Do you mean in this part of the script:
    usemap="#Map" /><map name="Map"><area shape="rect" coords="72,316,81,322" href="#"></map>
    <script language="JavaScript">

    If yes, exactly where?

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Leave the <script> tags where they are. Put the onmouseover= and onmouseout= tags, as shown in the demo, inside <area> tags rather than <a> tags. For example:
    Code:
    <map name="Map"><area shape="rect" coords="72,316,81,322" href="#" onmouseover="doTooltip(event,0)" onmouseout="hideTip()"></map>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jan 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your help.

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
  •