Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using Image Maps

    I have created image maps from a .gif and I am trying to get a menu to popup when I go over these hotspots so I can give another list of options to the user. I have looked for other websites that use the same idea and found them, but I think most of their javaScript code is hidden.

    My questions are:
    1. Is javaScript good to use for this purpose?
    2. How do I get the menu to be visible or for that fact how do I create that menu?

    Here's what the map code looks like:
    <map name="something" id="someID">
    <area shape="rect" coords="23,32,2,23" href='#'>
    </map>

    I am hoping to popup this menu when the mousebutton is pressed so it wouldn't be annoying. So I'm thinking like a onmouseDown event.

    If anyone can help. Thanks!

  • #2
    New Coder
    Join Date
    Mar 2005
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    question?

    Did I not word the questions right?

  • #3
    New Coder
    Join Date
    Mar 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My suggestion would be to first make the menu inside a div, so that it looks OK.
    After that, add a simple "display: none;" in your CSS to hide the menu.

    Then, using the javascript onclick event handler, you can show the menu like this:
    Code:
    <imagemapwhatever onclick="this.style.display='block';">
    Where the imagemapwhatever is your normal imagemap code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •