Header banner broken

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
jaylam13
Registered User
Posts: 194
Joined: Wed Sep 29, 2010 5:58 pm
Contact:

Header banner broken

Post by jaylam13 »

Hi,

I am trying to add a ad banner to my header, it works but the banner shrinks and I cant understand why.

Here is the overall_header.html code I altered:

Code: Select all

			<div id="site-description">
				<a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
				<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
			</div>
	
			<div style="float:right;margin-top:10px">
<script language='JavaScript' type='text/javascript' src='http://mywebsite.com/phpadsnew/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://mywebsite.com/phpadsnew/adjs.php?n=" + phpAds_random);
   document.write ("&clientid=8");
   document.write ("&exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://mywebsite.com/phpadsnew/adclick.php?n=ae202722' target='_blank'><img src='http://mywebsite.com/phpadsnew/adview.php?clientid=8&n=ae202722' border='0' alt=''></a></noscript>

			</div>
<div style="clear:both;"></div>
and this is what I get but the ad image should be 800px x 100px:
untitled.JPG
untitled.JPG (55.06 KiB) Viewed 340 times
However, if I paste the add java code in a plain html document it works fine.

Any ideas?

Thanks in advance

Jay
User avatar
Rahber
Former Team Member
Posts: 2720
Joined: Tue Feb 12, 2008 3:39 pm
Location: Pakistan
Name: Rahber
Contact:

Re: Header banner broken

Post by Rahber »

because you are placing in line with site description so that is width: 80%; and the rest is in 20% thats why your banner got shrinked.

Its a wild guess unless i see the code with banner on it on your site.
jaylam13
Registered User
Posts: 194
Joined: Wed Sep 29, 2010 5:58 pm
Contact:

Re: Header banner broken

Post by jaylam13 »

Rahber wrote:because you are placing in line with site description so that is width: 80%; and the rest is in 20% thats why your banner got shrinked.

Its a wild guess unless i see the code with banner on it on your site.
Thanks that resolved it, however if you look at the screenshot below one image appears to be higher than the other, they are both 100px high.
untitled.JPG
untitled.JPG (61.51 KiB) Viewed 306 times
Any suggestions?
Locked

Return to “[3.0.x] Styles Support & Discussion”