Develop PHP Website for Learning Web Design Free Online
  Home   |   Forums   |   DevCMS
  Join   |   Log In
 
   

HTML Tutorials - Learn HTML

Tutor at Develop PHP
<map> - Image Map
By: Adam      Created: Jul 14, 2008      Views: 179 Tweet This Page  Post page to Facebook  Post page to Facebook

The <map> tag is used within an image mapping scenario where there will be clickable items created on the banner or image. Each area defines a hotspot that will enable mouse interactivity. This is how YouTube allows me to place my custom links on the top of my channel through image mapping. The buttons you see on top of my YouTube channel are actually part of the entire background file. In the image code demo below you will notice a rectangle and a circular hotspot are drawn and made clickable on top of the picture.

The "coords" attribute and values are the size and location of your hotspot items.

Code
 or Script Display Bar

<img src="myImage.jpg" alt="" width="283" height="283" usemap="#hotSpotMap" />
<map name="hotSpotMap">
<area shape="rect" coords="10,10,124,51" href="page1.html" target="_blank" />
<area shape="circle" coords="102,219,46" href="page2.html" target="_blank" />
</map>

                                   <meta> - Meta Data


Comment on <map> - Image Map




Search Tags:
<map>   ·  -   ·  Image   ·  Map   ·  
 
 
Arbitrary Links and Archives
Home
Active Forums
Members
SIte News
Link To Us
Gear
2009 Forum Archive
Programming Courses
Learn HTML
Learn CSS
Learn PHP
Learn MySQL
Learn Javascript
Learn jQuery
Learn ActionScript 3.0
Learn Java
Learn XML
DevelopPHP Requires Flash Player
Get Adobe Flash player
___________________________________________

Terms of Use  •  Privacy  •  Admin Notes

©2010 developphp.com   |   Powered By FlashBuildingHolder