Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2947

    Hi,

    I have a banner in the header section of my theme: http://mostfish.com

    For some reason it is not clickable. Anyone know what the problem might be?

    This is the code I have used in the header.php file:

    <h2 class="logo ie6fix <?php echo $logoclass; ?>">/"><?php echo $logo; ?></h2>

    <div align="right" style="margin-top: 50px; float: right;"><script src='http://www.automatedtraffic.com/auto_ads/preview.php?project_id=27007&displayLink=yes' language='javascript' type='text/javascript'></script></div>

    Any help would be most appreciated.

    Thanks

    Craig

    #39968

    You can try to add a z-index attribute to the div. Because it’s a javasript advert and not just an image link I’m not sure if it works though…

    So change the code you posted above to:

    <h2 class="logo ie6fix <?php echo $logoclass; ?>">/"><?php echo $logo; ?></h2>
    <div align="right" style="margin-top: 50px; float: right; z-index:1000;"><script src='http://www.automatedtraffic.com/auto_ads/preview.php?project_id=27007&displayLink=yes' language='javascript' type='text/javascript'></script></div>

    #39969

    Hey thanks Dude!

    tried that and it didn’t work :-(

    Any other suggestions?

    #39970

    Just noticed something.

    It works ok in IE but not in Firefax

    Does that help you come up with any suggestions? :-)

    #39971

    Hey,

    It makes no difference that this image / link is called by JS – it uses document.write so is written to the page source correctly.

    The problem is that the pages navigation (Home, About, Staff etc) has padding-top so this covers the ad (even though you used z-index to stop that). The solution is to use this position: absolute, so replace your:

    <div align="right" style="margin-top: 50px; float: right; z-index:1000;"><script src='http://www.automatedtraffic.com/auto_ads/preview.php?project_id=27007&displayLink=yes' language='javascript' type='text/javascript'></script></div>

    code with:

    <div align="right" style="position: absolute; top: 50px; right: 0; z-index:10;"><script src='http://www.automatedtraffic.com/auto_ads/preview.php?project_id=27007&displayLink=yes' language='javascript' type='text/javascript'></script></div>

    Hope this helps!

    James

    #39972

    Thanks james.

    That worked a treat! :-)

    #39973

    Glad that James could help you :)

    #39974

    yes yes yes…it worked! This forum answers ALL of my questions

    #39975

    Hey can I use the code to add a static banner from my files. if so, where do i add the code?

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Banner not clickable in header’ is closed to new replies.