Forum Moderators: coopster

Message Too Old, No Replies

PHP image map

How do you create an image map in PHP?

         

PrattTA1

2:45 pm on May 18, 2007 (gmt 0)

10+ Year Member



I know HTML, but not PHP (and now our site is in PHP). I wanted to make an image in my header a link. I know how to do an image map in HTML, but not in PHP.

The header code where the image is, looks like this:

<?
$pid = "4";
$banner_img = "banner_blog.jpg";
$banner_alt = "Blog";
$callback = $baseurl."blog/";
$rootdir = "../";
$disableCSS = "yes";
?>

So how can I add something like: "usemap="#banner_blog" to the PHP code so it knows which image map to use?

joelgreen

4:56 pm on May 18, 2007 (gmt 0)

10+ Year Member



The code you specified only defines variables for later use in another place. You'll have to change that "another place" code which outputs link using variables you specified above. You could search your php files for $banner_img entry to find more places where the variable is being used.