Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-18-2012, 12:53 AM   PM User | #1
SteveH
Regular Coder

 
Join Date: Nov 2005
Posts: 615
Thanks: 91
Thanked 1 Time in 1 Post
SteveH is an unknown quantity at this point
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
SteveH is offline   Reply With Quote
Old 04-18-2012, 12:35 PM   PM User | #2
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
Hi there SteveH,

you forgot to use your hash.
usemap="#myMenu"
coothead
coothead is offline   Reply With Quote
Users who have thanked coothead for this post:
SteveH (04-18-2012)
Old 04-18-2012, 04:22 PM   PM User | #3
SteveH
Regular Coder

 
Join Date: Nov 2005
Posts: 615
Thanks: 91
Thanked 1 Time in 1 Post
SteveH is an unknown quantity at this point
Oh! Thank you!

It's working now.

Cheers
SteveH is offline   Reply With Quote
Old 04-18-2012, 04:45 PM   PM User | #4
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
No problem, you're very welcome.
coothead
coothead is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:22 AM.


Advertisement
Log in to turn off these ads.