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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post

    Map coordinates question

    Hello

    I am hoping for verification that the following code snippet reads ok (I get no errors using a validator - although I know that even the 'alt' tag is not working), because the links/coordinates don't seem to function:

    Code:
    <td align="left" valign="top"><img src="images/links-top-bottom_USE.jpg" alt="main image" width="220" height="71" usemap="myMenu" border=0></td>
    
    <map name="myMenu">
    
    <area shape="rect" coords="2,3,70,65" alt="Home" href="index.asp" />
      
    <area shape="rect" coords="76,3,143,64" alt="About us" href="aboutus.asp" />
      
    <area shape="rect" coords="148,3,216,68" alt="Contact us" href="contactus.asp" />
    
    </map>
    I loaded the image into MS Paint and split it into three areas with the rectangle tool - Paint shows the cordinates at the bottom of the screen, though I am aware that the cordinates will have changed since I have since inserted the image map into a Web page.

    How would you get accurate coordinates once you have moved the image from the top left hand side of the MS Paint interface to somewhere in a Web page?

    Many thanks

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,696
    Thanks
    0
    Thanked 232 Times in 227 Posts
    Hi there SteveH,

    you forgot to use your hash.

    usemap="#myMenu"
    coothead

  • Users who have thanked coothead for this post:

    SteveH (04-18-2012)

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post
    Oh! Thank you!

    It's working now.

    Cheers

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,696
    Thanks
    0
    Thanked 232 Times in 227 Posts
    No problem, you're very welcome.
    coothead


  •  

    Posting Permissions

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