Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Blank Box Mod -- Image Hotspot Links Don't Work...

Blank Box Mod -- Image Hotspot Links Don't Work...

Locked

Views: 960

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Jun 2008, 5:25 PM
#1
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Blank Box Mod -- Image Hotspot Links Don't Work...

Hi eveyone:

I didn't have any problems creating hotspot links in the header image, but when I tried to set them up for an image placed in a blank box (I downloaded the blank box mod) -- it doesn't work. The image in question is in the left column (the one with 4 squares). Any idea what I'm doing wrong? I can't find anything wrong with my code. Thank you!

Here is the link to my site: http://www.mishutkadesign.com//index...page=page&id=2

<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*/

$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

// Replace the text and HTML tags between the apostophes.
// Use as many or as few lines using this model as you need for your custom content.

$content .= '<p></p>';
$content .= '<img src="includes/templates/MDS/images/sidebox-nav.gif" alt="" width="200" height="200" border="0" usemap="#Map" /><map name="Map" id="Map">
<area shape="rect" coords="0,-2,96,96" href="http://www.mishutkadesign.com//index.php?main_page=page&id=19" />
<area shape="rect" coords="106,1,201,96" href="http://www.mishutkadesign.com//index.php?main_page=page&id=20" />
<area shape="rect" coords="0,105,96,199" href="http://www.mishutkadesign.com//index.php?main_page=page&id=21" />
<area shape="rect" coords="104,104,201,199" href="http://www.mishutkadesign.com//index.php?main_page=page&id=22" />
</map>';

$content .= '</div>';
?>
28 Jun 2008, 9:34 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Blank Box Mod -- Image Hotspot Links Don't Work...

I think that using the same name & ID might be throwing this off - you are using this for both

usemap="#Map" /><map name="Map" id="Map">
28 Jun 2008, 11:45 PM
#3
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Blank Box Mod -- Image Hotspot Links Don't Work...

Thanks, kobra, for pointing me in the right direction! Apparently, all I needed to do is to rename the map (as Map2) and change the name and id:

usemap="#Map2" /><map name="Map2" id="Map2">

Now it works! :smile: