Mirtus Inc.
Get the best features of this site by being a member. Either click Log In if you are already a member or if you are new, click register, and register for free.

~Mirtus
Mirtus Inc.
Get the best features of this site by being a member. Either click Log In if you are already a member or if you are new, click register, and register for free.

~Mirtus
Mirtus Inc.
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomePortalLatest imagesSearchRegisterLog in

 

 Client Side Image Maps

Go down 
2 posters
AuthorMessage
genesis
VIP
VIP



Posts : 1
Join date : 2011-02-12

Client Side Image Maps Empty
PostSubject: Client Side Image Maps   Client Side Image Maps EmptySat Feb 12, 2011 12:36 pm

How to find the Coordinates

There are two ways to find the X,Y coordinates in an image. The first is to use a graphics program by moving your mouse over the place on the image and looking somewhere for a set of numbers that change as you move the mouse. The second way is to use your browser. Make your image a link, and then add the attribute ISMAP to your image tag. Load the page with this markup into your browser, and get the X,Y by looking at the set of numbers in the status bar.

Code:
<a href="">
<img src="image.gif" width="130" height="110" alt="someText" ISMAP>
</a>

Rectangle (rect)

To make a rectangular area find the coordinates of the top left corner of the area, and then the bottom right corner. Put the coordinates in the coords attribute separated by comma's.

Code:
<map name="rect">
<area shape="rect" coords="x1, y1, x2, y2" href="page.html" alt="Alternate Text Here">
</map>

Circle

To make a circular area find the coordinates of the center of the area, and then the left center. Put the first coordinates in as normal, and subtract the first number from the second set of coordinates from the first number of the first set of coordinates. That makes your third variable and the radius of the circle.

Code:
<map name="circle">
<area shape="circle" coords="x, y, r" href="page.html" alt="Alternate Text Here=">
</map>

Polygon

Polygons are almost the same as the rectangle, except you can have as many coordinates as you wish and the area can have any shape. Simply put all the coordinates in and you are done.

Code:
<map name="poly">
<area shape="poly" coords="x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, x6, y6, x7, y7" href="page.html" alt="Alternate Text Here">
</map>


Last edited by Mirtus on Sat Feb 12, 2011 12:39 pm; edited 2 times in total (Reason for editing : easier to see)
Back to top Go down
Mirtus
Founder
Founder
Mirtus


Posts : 503
Join date : 2010-09-21
Location : Los Angeles, CA

Client Side Image Maps Empty
PostSubject: Re: Client Side Image Maps   Client Side Image Maps EmptySat Feb 12, 2011 12:38 pm

Oh my god thank you!!! I needed this so badly!
Back to top Go down
https://mirtus.darkbb.com
 
Client Side Image Maps
Back to top 
Page 1 of 1
 Similar topics
-
» Carat & Exp Client (5-24-2011)
» Rumble Fighter Destruction 2.0.1.0 + Multi Client

Permissions in this forum:You cannot reply to topics in this forum
Mirtus Inc. :: Technology :: Basic Knowledge-
Jump to: