Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Can I add an HTML image map into the header?

    if you look at my site http://www.gottagreatgift.com/ in the header you will there is blog / contact / about us
    I want to make those links how can I do that? Can I make the header back ground image an HTML image map? Or is there a better way to make those items links?

  2. #2
    Join Date
    Apr 2008
    Location
    Missoula, MT
    Posts
    59
    Plugin Contributions
    0

    Default Re: Can I add an HTML image map into the header?

    those links don't actually look active, Touch. If you want to use images as nav links, you are probably going to want to replace linked text with them using CSS.

    This is how I do it with my header at Purebulk.com

    The html....
    Code:
    <div id="header"><h1><a href="/">PureBulk</a></h1>
    so just put your buttons in a list or divs or something with text and links to where they want to go...

    and then here is the CSS that overwrites that with an image

    Code:
    #header h1 a:link, #header h1 a:visited{
            background:url(../images/PureBulk.gif) no-repeat;
            width:250px;
            height:81px;
            display:block;
            border:none;}
    I hope that helps.!

  3. #3
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Re: Can I add an HTML image map into the header?

    you lost me on this one

  4. #4
    Join Date
    Apr 2008
    Location
    Missoula, MT
    Posts
    59
    Plugin Contributions
    0

    Default Re: Can I add an HTML image map into the header?

    Do you understand how HTML & CSS interact with each other? The basic idea that HTML defines your containers & your content, and CSS modifies how those containers & content appear.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Can I add an HTML image map into the header?

    Several threads relating to image hotspots:-

    Try this one for starters:

    http://www.zen-cart.com/forum/showthread.php?t=93238
    20 years a Zencart User

  6. #6
    Join Date
    Dec 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: Can I add an HTML image map into the header?

    wonder if it is possible to make image active when clicking? i understand that it is something to do with css and also setting each page to its own body id.

    But the main template has its own code for an example,
    Code:
    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
    Is there a way to set each page to its own body id?

    thanks.

  7. #7
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Re: Can I add an HTML image map into the header?

    I added an image map in to the tpl_header but for some reason my logo has dropped below the freeshipping and the cart totals drop to the bottom of the header can some one tell me why

    tpl_header
    Code:
    <!--bof-branding display-->
     
    <div id="logoWrapper">
    <img src="http://www.gottagreatgift.com/includes/templates/gottagreat/images/header_bg.png" width="898" height="153" border="0" usemap="#Map" />
    <map name="Map" id="Map"><area shape="rect" coords="206,73,302,114" href="http://www.gottagreatgift.com/index.php?main_page=contact_us" target="_self" />
    <area shape="rect" coords="308,74,400,115" href="http://www.gottagreatgift.com/index.php?main_page=page_2" target="_self" />
    <area shape="rect" coords="441,4,618,147" href="http://www.gottagreatgift.com/index.php?main_page=page_3" target="_self" />
    <area shape="rect" coords="137,68,206,115" href="http://www.gottagreatgift.com/index.php?main_page=page_3" target="_self" />
    </map>
        <div id="logo"><span class="style1"><a href="/shop/index.php?main_page=shopping_cart"><img src="/includes/templates/gottagreat/images/cart.gif" /></a>
        
    	<?php echo sizeof($_SESSION['cart']->get_products()); ?> &nbsp;items&nbsp;&nbsp;
     	<?php $header_cart = $currencies->format($_SESSION['cart']->show_total());  
    	echo $header_cart;
    	?>
    </span>
    <br class="clearBoth" />
    </li><?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>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
          <div id="navMainCartSummary"><?php require(DIR_WS_MODULES . 'sideboxes/cart_summary.php'); ?></div>
    <?php
                  }
    ?>
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
                    }
                  }
    ?>
        </div>

  8. #8
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Re: Can I add an HTML image map into the header?

    any Ideas what I have done wrong

  9. #9
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Can I add an HTML image map into the header?

    To get some help with the above, pls provide a working web address where I can see what problem you're talking about.

    I agree with svakanda that you should really put links in CSS form. That's the new way to do it, and the right way to do it. Image maps should only be used for things like maps with clickable states, etc anything other than that, you're using an outdated method. Menus should be CSS all the way...

 

 

Similar Threads

  1. Can I use an image map as a header?
    By Tyger in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jan 2010, 07:14 PM
  2. How I can insert it into a box the google site map?
    By Holo in forum Basic Configuration
    Replies: 0
    Last Post: 21 Aug 2008, 06:38 AM
  3. can you add an image in the header?
    By MachaNeko in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 May 2008, 05:23 PM
  4. Can someone help me with an image map header?
    By tolefairy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Apr 2008, 02:12 AM

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