This website is hosted for free by free website - Webs.com. Get your own Free Website now!

Imp's Personal Corner Sign
 Best viewed with IE4+ and a 800x600 screen

  Modem slow? Check Your Bandwidth Speed Here Check It With Net Monitor Get It Here!

Welcome

Site Menu

HTML Lessons

Sign Up Now. It's FREE

Name:

Email Address:




Search The Web

Financial Quotes

Financial Quotes
Charts and News


Enter symbol
Quote
Charts
News
  

HTML Forum



Imp's Guestbook



World News At You Finger Tips
Headline News

You'll find up to date news on subjects such as Late Breaking, World, International Sports, Entertainment, Music, Cricket, Formula 1 Racing, Golf, Soccer, Tennis, Track & Field, Hackers News, Lawsuits, War, Australia, France, Israel, Japan, South Africa and Great Britain.

World News At You Finger Tips

Learning How To Use Image Maps...

An image map is basically a GIF or a JPEG image that has mapped coordinates with instructions. For example if you click on one part of the image it will take you to one page, and another part of the same image would take you to some place else.

Ok below is an image map that I created...

Shania Twain

Move your mouse over the image, you should notice 3 parts, one called Image Map 1, one called Image Map 2 and lastly one called Image Map 3. If you click on any of those 3, they will take you to a new page, try them and see smiley face

I created the image map using an application called Mapedit, it's shareware, you can find it here

There are two types of imagemaps, client-side and server-side. We will concentrate mostly on client-side maps which are usually used today, and are supported on Netscape 2.0 and Internet Explorer 3.0 and later.

Imagemaps use a "map" that is put over an image. This "map" needs to have areas defined by using rectangles, polygons, and circles. You need to make a map in your HTML file by using the <MAP> </MAP> tags.



An Example:

<map name="mapname"><!--put the coordinates and links here--></map>

Between these two map tags, you need to use another tag, the <area> </area> tag. The coordinate system for this tag starts at the upper left pixel of the image. There are three main types of <area> tags, they are all listed and explained below:

<area shape="rect" coords="x1,y1,x2,y2" href="url">

This will make a rectangle using points x1,y1 as the upper left corner and points x2,y2 as the lower right corner. "href" sets to what page the user will be taken to, just as the <a> tag does.

<area shape="circle" coords="x,y,radius" href="url>

In this tag, x,y are the coordinates of the center of the circle and 'radius' is the radius of the circle.

<area shape="poly" coords="x1,y1,x2,y2,x3,y3" href="url">

With the polygon tag you can make a polygon with as many sides as you want. This can be very helpful, but tedious to set up.



Here is another example of an image map that uses a circle, polygon, and rectangle:

To tell the browser what image to put the map onto, you need to define which image you want the imagemap on. You can do this by using the usemap attribute of the <img> tag.<img src="image.gif" usemap="#mapname">

Here is the HTML code for the imagemap above:

<img src="imagemap[1].gif" usemap="#map" width="175" height="75" border="0">
<map name="map">
<area shape=circle coords="26,26,22" href="1.htm">
<area shape=poly coords="62,32,41,64,93,64" href="2.htm">
<area shape=rect coords="114,32,171,70" href="3.htm">
</map>

Top

ALTERNATIVE SITE MENU
 
Home
About Me
Joke Of The Day
Games Zone
My Interests
Sharks
Crocs & Alligators
Florida Panther
Entertainment
Imp's Chat Server
Registration
Rooms List
Server Policy
Feedbacks
Contact
Other Chat Servers
HTML Basics
Creating A Web Page
Using Notepad
Using Colors
Creating Links
Using Images
Text Appearance
Using Lists
Horizontal Rules
Tables
Tables Examples
FTP Uploading
HTML Advanced
Cascading Style Sheets
Spacer GIF
Counters
Favourites Icons
Forms
Frames
Frames Examples
Getting Noticed
Image Maps
Page Transitions
Redirects
Site Search
Securing Your Images
Image Rollovers
Menus
Mouseovers
Javascripts
HTML References
My Colorchart
Character Codes
Web Hosts
HTML Tags List
Tags A-B
Tags C-E
Tags F (part 1)
Tags F (part 2)
Tags H-L
Tags M-P
Tags S-U
My Favourite Sites


Copyright © 2001 Imp's Personal Corner

In Association with Amazon.com
Join Going Platinum
In Association with Amazon.com
Image Map 1 Image Map 2 Image Map 3