Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    9
    Plugin Contributions
    0

    Default Image map in the logo, problems any help?!

    Hi and thanks in advance for any help.

    I'm trying to get an imagemap on the logo of my website. I have done the image map and actually got it to work, however it is messing up with the site when I enter the code for the imagemap. The problem is anything below the header will move to the right side of leaving the site unaligned.

    Here is the code before I change it.

    The file that is been edit is tpl_header.php

    before changing the code:

    <div id="logoWrapper">
    <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>
    <div id="taglineWrapper">

    after changing the code:

    <div id="logoWrapper">
    <div id="logo"><div id="logoWrapper">
    <div id="logo"><img src="images/header_bg.gif" width="842" height="282" border="0" alt="" usemap="#header_bg_Map">
    <map name="header_bg_Map">
    <area shape="rect" alt="" coords="544,166,798,273" href="http://maaccessories.com/index.php?main_page=product_info&cPath=1&products_id=2">
    <area shape="rect" alt="" coords="544,53,799,162" href="http://maaccessories.com/index.php?main_page=product_info&cPath=1&products_id=3">
    </map><?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>
    <div id="taglineWrapper">


    So if anyone can tell me if I'm placing the code in the right place or what can I change to correct that. I'm not a programmer so if you can show me the way to edit the code that would be awesome.

    here is a link to the site

    http://www.maaccessories.com

    I left the code that isn't working properly there, maybe it will be easier to understand what I'm trying to say.

    If anyone can help it will be much appreciated.

    Thank you very much for any help.

  2. #2
    Join Date
    Feb 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Image map in the logo, problems any help?!

    Ok I figure out what one of the problem was. The alignment problem only happens in firefox! On internet explorer it works fine.

    Any help?!

    Thanks

 

 

Similar Threads

  1. v150 problems setting up lightbox, or any kind image improvement add on
    By makrothumya in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 19 Jun 2012, 02:42 PM
  2. Is there any way to set the medium image(_MED) as the default image of the product?
    By mybiz9999 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Aug 2010, 05:22 PM
  3. Image Map to Logo/Header
    By john4803 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Aug 2010, 03:49 PM
  4. Change logo to image map?
    By dothanbydesign in forum General Questions
    Replies: 0
    Last Post: 29 Mar 2008, 10:09 PM
  5. Made logo to Image map; now white space and blue border.
    By HeathenMagic in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Dec 2007, 07:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg