Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't center my image map under my logo


dawndmd

Recommended Posts

Hi, I am having a problem coding correctly to put my image map under my logo. Visit http://www.branicdesigns.com/store to see what I mean. I am sure it is a minor mistake. Here is my coding:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

<td align="center"><img src="http://www.branicdesigns.com/store/admin/images/links.jpg" align="center" alt="Contact" width="780" height="30" border="0" usemap="#Map"></td>

<map name="Map">

<area shape="rect" coords="32,6,96,26" href="http://www.branicdesigns.com/index.html" target="_self" alt="Home">

<area shape="rect" coords="128,2,183,27" href="http://www.branicdesigns.com/store" target="_self" alt="Shop">

<area shape="rect" coords="214,0,273,28" href="http://www.branicdesigns.com/branicblog" target="_blank" alt="Blog">

<area shape="rect" coords="299,2,379,26" href="http://www.branicdesigns.com/gallery" target="_self" alt="Gallery">

<area shape="rect" coords="413,1,485,28" href="http://www.branicdesigns.com/forum" target="_self" alt="Forum">

<area shape="rect" coords="525,2,622,27" href="http://www.branicdesigns.com/resources.htm" target="_self" alt="Resources">

<area shape="rect" coords="655,2,765,28" href="http://www.branicdesigns.com/contact.htm" target="_self" alt="Contact">

</map>

<td align="right" valign="bottom"><?php //echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

 

</table>

Link to comment
Share on other sites

...

</map>

<td align="right" valign="bottom"><?php //echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td>

</table>

 

Maybe this <?php //echo ' is hanging you up. I know nothing about image maps and use within php.

 

Change to this: <?php echo '

 

jon

It's all just ones and zeros....

Link to comment
Share on other sites

Maybe you should put your image map in a new row separate from your oscommerce.gif ...?

 

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

<td align="center"><img src="http://www.branicdesigns.com/store/admin/images/links.jpg" align="center" alt="Contact" width="780" height="30" border="0" usemap="#Map"></td>

</tr>

 

<tr class="header">

<td align="center">

<map name="Map">

<area shape="rect" coords="32,6,96,26" href="http://www.branicdesigns.com/index.html" target="_self" alt="Home">

<area shape="rect" coords="128,2,183,27" href="http://www.branicdesigns.com/store" target="_self" alt="Shop">

<area shape="rect" coords="214,0,273,28" href="http://www.branicdesigns.com/branicblog" target="_blank" alt="Blog">

<area shape="rect" coords="299,2,379,26" href="http://www.branicdesigns.com/gallery" target="_self" alt="Gallery">

<area shape="rect" coords="413,1,485,28" href="http://www.branicdesigns.com/forum" target="_self" alt="Forum">

<area shape="rect" coords="525,2,622,27" href="http://www.branicdesigns.com/resources.htm" target="_self" alt="Resources">

<area shape="rect" coords="655,2,765,28" href="http://www.branicdesigns.com/contact.htm" target="_self" alt="Contact">

</map>

 

</td>

</tr>

 

<td align="right" valign="bottom"><?php //echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

 

</table>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...