please help me this code

Status
Not open for further replies.

Black Tiger

Active Member
249
2011
13
0
please tell me how to i set these banner in one line or row
i use these code <TR><TD> but its not working..


Code:
<TR><TD>
<script language="javascript" type="text/javascript" charset="utf-8">
cpxcenter_width = 160;
cpxcenter_height = 600;
</script>
<script language="JavaScript" type="text/javascript" src="http://ads.cpxcenter.com/cpxcenter/showAd.php?nid=4&amp;zone=4782&amp;type=banner&amp;sid=4782&amp;pid=4521">
</script>
<script language="javascript" type="text/javascript" charset="utf-8">
cpxcenter_width = 120;
cpxcenter_height = 600;
</script>
<script language="JavaScript" type="text/javascript" src="http://ads.cpxcenter.com/cpxcenter/showAd.php?nid=4&amp;zone=4782&amp;type=banner&amp;sid=4782&amp;pid=4521">
</script>
</TD></TR>
 
5 comments
try:

Code:
<table><tr><td>
<script language="javascript" type="text/javascript" charset="utf-8">
cpxcenter_width = 160;
cpxcenter_height = 600;
</script>
<script language="JavaScript" type="text/javascript" src="http://ads.cpxcenter.com/cpxcenter/showAd.php?nid=4&amp;zone=4782&amp;type=banner&amp;sid=4782&amp;pid=4521">
</script>
</td><td>
<script language="javascript" type="text/javascript" charset="utf-8">
cpxcenter_width = 120;
cpxcenter_height = 600;
</script>
<script language="JavaScript" type="text/javascript" src="http://ads.cpxcenter.com/cpxcenter/showAd.php?nid=4&amp;zone=4782&amp;type=banner&amp;sid=4782&amp;pid=4521">
</script>
</td></tr></table>
 
Since they are building their own html. The only way I found for it to work is like this.

Create 2 html files with the ad code in it.
ad1.html
Code:
<script language="javascript" type="text/javascript" charset="utf-8">cpxcenter_width = 160;cpxcenter_height = 600;</script>
<script language="JavaScript" type="text/javascript" src="http://ads.cpxcenter.com/cpxcenter/showAd.php?nid=4&amp;zone=4782&amp;type=banner&amp;sid=4782&amp;pid=4521"></script>
ad2.html
Code:
<script language="javascript" type="text/javascript" charset="utf-8">cpxcenter_width = 160;cpxcenter_height = 600;</script>
<script language="JavaScript" type="text/javascript" src="http://ads.cpxcenter.com/cpxcenter/showAd.php?nid=4&amp;zone=4782&amp;type=banner&amp;sid=4782&amp;pid=4521"></script>

Your code to get those ads
Code:
<style>
/* Generated via www.cssmenubuilder.com */
.menu{margin:0 auto; padding:0; height:30px; width:100%; display:block; background:url('topMenuImages.png') repeat-x;}
.menu li{padding:0; margin:0; list-style:none; display:inline;}
.menu li a{float:left; padding-left:15px; display:block; color:rgb(0,0,0); text-decoration:none; font:12px Verdana, Arial, Helvetica, sans-serif; cursor:pointer; background:url('topMenuImages.png') 0px -30px no-repeat;}
.menu li a span{line-height:30px; float:left; display:block; padding-right:15px; background:url('topMenuImages.png') 100% -30px no-repeat;}
.menu li a:hover{background-position:0px -60px; color:rgb(255,255,255);}
.menu li a:hover span{background-position:100% -60px;}
.menu li a.active, .menu li a.active:hover{line-height:30px; font:12px Verdana, Arial, Helvetica, sans-serif; background:url('topMenuImages.png') 0px -90px no-repeat; color:rgb(255,255,255);}
.menu li a.active span, .menu li a.active:hover span{background:url('topMenuImages.png') 100% -90px no-repeat;}
</style>

<ul class="menu">
  <li><a href="/home" class="active"><span>Home</span></a></li>
  <li><a href="/services"><span>Services</span></a></li>
  <li><a href="/about"><span>About</span></a></li>
  <li><a href="/contact"><span>Contact</span></a></li>
  <li><a href="about.html"><span>About</span></a></li>
  <li><a href="services.html"><span>Services</span></a></li>
</ul>
<iframe src="ad1.html" style="width:160px;height:600px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
<iframe src="ad2.html" style="width:160px;height:600px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

Of course ad1 & ad2 must be in the folder calling them or you must add a complte http address for their location.
 
Status
Not open for further replies.
Back
Top