OK. Think I got this functioning pretty much the way I want it, but I think the code is a little wacky and I was hoping that someone might point out the error of my way.
I found an older
post (December 2005) that pointed me in this direction, but seems that some things have changed since then.:huh: It did take a little reckless tweaking, but I got it working (I think).
I created an imagemap to make the links in my header image functional. In order to do that, I did the following:
Found this original text in tpl.header.php:
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
...and changed it to this:
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT, 'name="logo" usemap="#logo"') . '</a>'; ?><map name="logo"><?php echo HEADER_LOGO_IMAGEMAP; ?></map></div>
Then in header.php, I added:
define('HEADER_LOGO_IMAGEMAP', '<area shape="rect" alt="" coords="254,121,330,164" href="index.php?main_page=login">
<area shape="rect" alt="" coords="331,121,452,164" href="index.php?main_page=account">
<area shape="rect" alt="" coords="455,121,590,166" href="index.php?main_page=products_new">
<area shape="rect" alt="" coords="594,121,683,166" href="index.php?main_page=shippinginfo">
<area shape="rect" alt="" coords="687,121,799,165" href="index.php?main_page=contact_us">');
Seems to be working the way that I want it too finally, but someone told me the code was not validating correctly.
Anyone tell me what I need to do to tighten this up?
Thanks again.