Clickable image

B

Bart Schelkens

Hi,

I've put an image on my website.
Now I want the user to be able to click on certain parts of the image.
How can I do that ?

Thx
 
G

GrantMagic

You have to use an image map .... it takes a but of playing around, but
you'll get it eventually

E.G.

<!-- Image mapping co-ordinates go here -->
<MAP NAME="imageMapName">
<AREA SHAPE="RECT" COORDS="0, 0, 160, 60"
HREF="http://www.site.com/page1.html">
<AREA SHAPE="RECT" COORDS="160, 0, 310, 60"
HREF="http://www.site.com/page2.html">
<AREA SHAPE="RECT" COORDS="310, 0, 410, 60"
HREF="http://www.site.com/page3.html">
<AREA SHAPE="RECT" COORDS="0, 60, 160, 110"
HREF="http://www.site.com/page4.html">
<AREA SHAPE="RECT" COORDS="160, 60, 310, 110"
HREF="http://www.site.com/page5.html">
<AREA SHAPE="RECT" COORDS="310, 60, 410, 110"
HREF="http://www.site.com/page6.html">
</MAP>

<!--image goes here .... notes usemap attribute -->
<img src="/images/image.gif" width="410" height="110" border="0"
align="middle" usemap="#imageMapName">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top