Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Imagemaps in PHP ?!

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Imagemaps in PHP ?!

Postby 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
New php-forum User
 
Posts: 3
Joined: Sun Jan 05, 2003 4:18 pm
Location: Sweden

Postby Joan Garnet » Wed Jan 08, 2003 3:24 pm

Maybe using javascript and layers would work just fine.
bye!
User avatar
Joan Garnet
Moderator
Moderator
 
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

Postby 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
New php-forum User
 
Posts: 4
Joined: Fri Jan 10, 2003 8:11 am

Postby Joan Garnet » Fri Jan 10, 2003 12:11 pm

Very nice :!:
I didn't know abot this implementation.
ThanX!
User avatar
Joan Garnet
Moderator
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: adke001458 and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.