PDA

View Full Version : Picture Links


00XxXxX00
03-14-2003, 11:45 PM
I have a pic, and I want certain parts of it to be clickable. How would I manage doing that? The picture is at, http://www.geocities.com/riwskate/events.bmp and I want the text areas to be clickable. Is it possible?

ACJavascript
03-15-2003, 12:24 AM
You can use an image map like so

<img src="ImageName.gif" usemap="#navigation">

<map name="navigation">
<area shape="rectangle" coords="0,0,30,50" href="yourPage.html">
</map>

Somthing like that :D

Hope it helps

00XxXxX00
03-15-2003, 01:04 AM
how do i found out the cords of the part of the pic?

Nightfire
03-15-2003, 02:39 AM
Most modern image editors will show you the co-ords in the status bar

ACJavascript
03-15-2003, 03:38 AM
if you dont have a modern image editor just create the coords and put this code in

<area s<area shape="rectangle" coords="0,0,30,50" href="yourPage.html" style="cursor-type:hand;">

now move your mouse around till you see it change to a hand.. I think thats the right code for the hand hehe :D