dawndmd Posted January 20, 2007 Share Posted January 20, 2007 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 More sharing options...
jonquil Posted January 20, 2007 Share Posted January 20, 2007 ...</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 More sharing options...
dawndmd Posted January 21, 2007 Author Share Posted January 21, 2007 Thanks, but that didn't do it. Anyone else have any suggestions? Dawn Link to comment Share on other sites More sharing options...
jonquil Posted January 21, 2007 Share Posted January 21, 2007 Try putting a BR tag to separate the logo and the ssl text: This: usemap="#Map"></td> To this: usemap="#Map"><BR></td> It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
jonquil Posted January 21, 2007 Share Posted January 21, 2007 Sorry, didn't mean ssl text. I meant your image map graphics. jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
aegrnberg Posted January 22, 2007 Share Posted January 22, 2007 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 More sharing options...
dawndmd Posted January 22, 2007 Author Share Posted January 22, 2007 Thank you. With a little tweeking of the tr coding I got it to work. Bless you. Dawn Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.