I have the following image on my site as a shopping cart:
PHP Code:
if ($_SESSION['cart']->count_contents() == 0) {
// display empty cart image
$totalsDisplay = '<a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '"><span class="headerbasketempty">'. zen_image(DIR_WS_TEMPLATE_IMAGES . 'cart_empty2.png', 'Image of Shopping Basket') .'</span></a>';
} else {
// make all content a link... Float image to the right and CSS style..
$totalsDisplay = '<a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '"><span class="headerbasket" style="float:right;">'. zen_image(DIR_WS_TEMPLATE_IMAGES . 'shopping_basket.png', 'Image of Shopping Basket') .'</span>'. $totalDisplay .'</a>';
Is it possible to add a hotspot to a specific area of this image by adapting the code above? The html would be:
<img src="http://www.limelites.co.uk/images/cart_empty2.png" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="1,3,172,169" href="http://www.limelites.co.uk/index.php?main_page=shopping_cart" />
Struggling to add the hotspot in PHP... Any help greatly appreciated.
Bookmarks