WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

Go to page : Previous  1, 2

View previous topic View next topic Go down  Message [Page 2 of 2]

1Accespted Multiple clickable portions on a Image. Sat Jan 23, 2010 11:28 pm

Sanket

Sanket
Administrator
Administrator
First topic message reminder :

Multiple clickable portions on a Image.
Using HTML make Mutliple portions on a image clickable

Hello Everyone Very Happy

This is a very simple tutorial to make multiple clickable areas on your image.

Enter this code into your HTML Page.

Code:
<img src="http://i50.tinypic.com/33ze045.png" border="none"
usemap=#Webartz>
<map name=Webartz>
<area shape=rect coords=17,105,256,123 href="http://google.com">
<area shape=rect coords=403,105,479,123 href="http://webartz.forumotion.com/webartz-news-f1/promote-win-t149.htm">
</map>

With the above code we will make two clickable links on the image. Here basically we make rectangular clickable links.

Multiple clickable portions on a Image. - Page 2 20tm077

Since now you have seen the demo, we have two clickable links. One over Win HTML Page for your website & the other one over Click Here

What we have done is put in the coordinates of the rectangular shapes for each of the text. coords=17,105,256,123
17 as the right edge, 105 as the top edge, 256 as the left edge and 123 as the bottom edge.

Now, for beginners who want to easily find the co-ordinates.

Open your image with the basic paint. Once you hover over it, it shows the X, Y coordinates.

Right Edge(17): Move it over the topmost left corner of your assumed rectangle. (Note the X coordinate)
Top Edge(105): Move it over the top edge of your assumed rectangle(Note the Y coordinate)
Left Edge(256): Move it over the top rightmost corner of your assumed rectangle (Note the X coordinate)
Bottom Edge(123): Move it over the top edge of your assumed rectangle(Note the Y coordinate)

An image for your understanding.
Multiple clickable portions on a Image. - Page 2 Ejx2bp

Now you have all the 4 coordinates of your rectangle which you can add.

You can test the perfectness of your clickable rectangle by testing the code here

Repeat this for as many rectangles as you want, so each rectangle can be considered one single link.

Thank you Smile

Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators.



Last edited by Sanket on Fri Jan 29, 2010 9:59 pm; edited 1 time in total

http://www.webartzforum.com

26Accespted Re: Multiple clickable portions on a Image. Fri Jan 29, 2010 11:35 pm

Fred100


Registered Member
Registered Member
Lol
No Problem & here is the result using the Image i made in paint as a decoy Very Happy
http://art-castle-test.forumotion.com/HTML-Test-h1.htm

http://www.art-castle.biz/forum.htm

27Accespted Re: Multiple clickable portions on a Image. Fri Jan 29, 2010 11:38 pm

Sanket

Sanket
Administrator
Administrator
Awesome, did you try it with multiple links?

http://www.webartzforum.com

28Accespted Re: Multiple clickable portions on a Image. Sat Jan 30, 2010 12:09 am

Fred100

Fred100
Registered Member
Registered Member
Yup , you can say that Very Happy

http://www.art-castle.biz/forum.htm

29Accespted Re: Multiple clickable portions on a Image. Sat Jan 30, 2010 10:16 am

karna

karna
Registered Member
Registered Member
That one is really useful sanket. I always wanted to learn image mapping in HTML but could never sort it out myself. After reading this tut I think I can do some stuff myself Very Happy

Thank very much for this tutorial.

Abiohazard

Abiohazard
Registered Member
Registered Member
Very helpful Smile

Sanket

Sanket
Administrator
Administrator
Glad its useful for many of you Smile

http://www.webartzforum.com

verrell123

verrell123
Registered Member
Registered Member
this is cool!

http://www.freshartz.co.cc/

Bpoetic

Bpoetic
Registered Member
Registered Member
Hi Sanket . . .

Is there a way to have a mouse over effect on an image map? Something like on this used for J.K.Rowling's enter page . . .

Sanket

Sanket
Administrator
Administrator
Hi Bpoetic, glad to see you here Smile

Well the one used on that site is flash. Not really possible to achieve that sort of thing without Flash.

http://www.webartzforum.com

The Unique

The Unique
Registered Member
Registered Member
Great tutorial, thanks Very Happy

Sponsored content


View previous topic View next topic Back to top  Message [Page 2 of 2]

Go to page : Previous  1, 2

Permissions in this forum:
You cannot reply to topics in this forum