Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
by dangr142 » Wed Jan 08, 2003 2:43 pm
Is there any function in PHP that creates an imagemap ?
I have one big image and I want different smaller areas of that image to be clickable and link to different sites ?!?

-
dangr142
- New php-forum User

-
- Posts: 3
- Joined: Sun Jan 05, 2003 4:18 pm
- Location: Sweden
by Joan Garnet » Wed Jan 08, 2003 3:24 pm
Maybe using javascript and layers would work just fine.
bye!
-

Joan Garnet
- Moderator

-
- Posts: 387
- Joined: Sat Aug 03, 2002 2:56 am
- Location: Mars
-
by sarah » Fri Jan 10, 2003 10:16 am
It might be better to slice the image into smaller pieces and then link the pieces. That way it should work on any browser. But if you want to use image maps, try something like...
- Code: Select all
<img src="bigImage.gif" usemap="#Map">
<map name="Map">
<area shape="rect" coords="-1,0,62,17" href="page1.php">
<area shape="rect" coords="64,1,234,19" href="page2.php">
</map>
Dreamweaver and many other site editing clients have this functionality built in.
-
sarah
- New php-forum User

-
- Posts: 4
- Joined: Fri Jan 10, 2003 8:11 am
by Joan Garnet » Fri Jan 10, 2003 12:11 pm
Very nice :!:
I didn't know abot this implementation.
ThanX!
-

Joan Garnet
- Moderator

-
- Posts: 387
- Joined: Sat Aug 03, 2002 2:56 am
- Location: Mars
-
Return to PHP coding => General
Who is online
Users browsing this forum: No registered users and 1 guest