Forum Moderators: open

Message Too Old, No Replies

Problem with Banner Alignment

         

bearcat

2:13 pm on Feb 8, 2004 (gmt 0)

10+ Year Member



Hi everyone,

I'm having trouble getting my banners to align properly. I want them to center, but often the align to the right. Here is my invocation code for phpAdsNew. Can anyone tell me what a better way to do this? I do want the flexibility of different sizes (banner, leaderboard, etc.). Thanks!

<div align="center"><script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.com/ads/adjs.php?n=ab4caa88");
document.write ("&amp;what=zone:7&amp;target=_blank");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referer)
document.write ("&amp;referer=" + escape(document.referer));
document.write ("'><" + "/script>");
//-->
</script><noscript>
<a href='http://www.com/ads/adclick.php?n=ab4caa88' target='_blank'><img src='http://www.com/ads/adview.php?what=zone:10&amp;n=ab4caa88' border='0' alt=''></a></noscript></div>

Purple Martin

3:14 am on Feb 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's calling an external script from their host that contains code to align the banner to the right. You can't change their code on their host so unfortunately you're stuck with it.

Krapulator

3:31 am on Feb 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should be able to manipulate it using css. Stick me the code you're using and I'll give it a bit of a fiddle.

bearcat

3:47 am on Feb 9, 2004 (gmt 0)

10+ Year Member



Thanks for the responses. I actually host the code, and it looks like a bug in phpAdsNew itself, as you mention. I am going to see if a light update (from RC 3 to Final) will solve the problem.

Krapulator, thanks for the offer on the CSS. I'm going to try to fix it on the script side first.