User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 427,933 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,908 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 671 | Replies: 6 | Solved
Reply
Join Date: Nov 2006
Posts: 58
Reputation: san_fran_crisko is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
san_fran_crisko san_fran_crisko is offline Offline
Junior Poster in Training

Image mapping

  #1  
Jul 2nd, 2008
Hello,

I'm trying to create a relatively simple web site but I've been stuck at the first post already! Basically I'm trying to image map the top banner with links but I've been unable to get this working. I'm not entirely sure what I'm doing wrong and I've been editing it and refreshing for days now! If anyone can spot the problem in my code it'd be much appreciated:

<html>
<body>

<img src="mainbanner.jpg" width="1024" height="275" border="0" usemap="#map" />

<map name="map">

<area shape="rect" coords="0,8,130,47" href="http://TBA" />
<area shape="rect" coords="134,8,260,47" href="http://TBA" />
<area shape="rect" coords="264,8,418,47" href="http://TBA" />
<area shape="rect" coords="421,8,530,47" href="http://TBA" />
<area shape="rect" coords="534,8,684,47" href="http://TBA" />
<area shape="rect" coords="688,8,814,47" href="http://TBA" />
<area shape="rect" coords="818,8,985,47" href="http://TBA" />

</map>

</body>
</html>

Thanks in advance

Ciaran.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 30
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: Image mapping

  #2  
Jul 3rd, 2008
first install dreamweaver in your system,
it will easy to edit image mapping
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Join Date: Nov 2006
Posts: 58
Reputation: san_fran_crisko is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
san_fran_crisko san_fran_crisko is offline Offline
Junior Poster in Training

Re: Image mapping

  #3  
Jul 3rd, 2008
Originally Posted by sreein1986 View Post
first install dreamweaver in your system,
it will easy to edit image mapping

I used GIMP to generate that code and it still doesn't work. Dreamweaver will produce the same code as the <map></map> conventions will be the same.
Reply With Quote  
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 30
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: Image mapping

  #4  
Jul 4th, 2008
in Dreamweaver one option is there below of property bar take poligonal tool it works fine
check the attachments
Attached Images
File Type: jpg screen.JPG (91.7 KB, 2 views)
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,467
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 11
Solved Threads: 296
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Image mapping

  #5  
Jul 5th, 2008
Originally Posted by sreein1986 View Post
first install dreamweaver in your system,
it will easy to edit image mapping

Dreamweaver is not all, secondly is not for free and installing trial version for such banality is silly

Code is OK, however you should swap name attribute for id attribute in start of map tag
<map name="map"> , as id attribute is required where name is just optional. Do not forget to add links to locations where to go after mouse click as these are currently not set href="http://TBA" . If you not sure what you doing you can have look at w3schools example on this topic
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Nov 2006
Posts: 58
Reputation: san_fran_crisko is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
san_fran_crisko san_fran_crisko is offline Offline
Junior Poster in Training

Re: Image mapping

  #6  
Jul 5th, 2008
Originally Posted by peter_budo View Post
Dreamweaver is not all, secondly is not for free and installing trial version for such banality is silly

Code is OK, however you should swap name attribute for id attribute in start of map tag
<map name="map"> , as id attribute is required where name is just optional. Do not forget to add links to locations where to go after mouse click as these are currently not set href="http://TBA" . If you not sure what you doing you can have look at w3schools example on this topic


Thanks for the response Peter. I'm not a fan of Dreamweaver either. It's too much money and too difficult for the little web dev I'm doing.

I've just discovered the problem. The co-ordinates are all wrong. I'll just have to manually work them out as GIMP's in-built mapping is obviously wrecked.

Thanks for the help.

Ciaran.
Reply With Quote  
Join Date: Aug 2008
Posts: 6
Reputation: mgwalk is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
mgwalk mgwalk is offline Offline
Newbie Poster

Re: Image mapping

  #7  
Sep 1st, 2008
you can try my online image map tool!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:21 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC