Web Hosting Talk







View Full Version : banner rotating code problem


AdvancedAid
06-22-2003, 09:24 PM
I am trying to put a banner rotating script into my vbulletin.

I have this code in the <head></head> tags:


<style type="text/css">
div#adBanner2 {
margin: 0;
padding: 0;
width: 780px;
height: 125px;
position: relative;
background: url(whtimages/top.gif) no-repeat;
}
div#adBanner2 img {
position: absolute;
left: 151px;
top: 25px;
width: 468px;
height: 60px;
}
</style>


The place that I would like the banners to show up from the banner rotating script has this:


<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" valign="bottom">
<tr valign="bottom">
<td width="100%" align="center" background="whtimages/topbg.gif" valign"bottom">
<div id="adBanner2">
$phpAds_context


</div></div></td>
</tr>
</table>


The php code that is used for the banner rotating script is this:


//Banner Ads
if (@include(getenv('DOCUMENT_ROOT').'/bannerad/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:2', 0, '_blank', 'adBanner2', '0', $phpAds_context);
echo $phpAds_raw['html'];


When using this I get this result: http:www.advancedwebaid.com. I want the banners to show up in the white space below the header. Please email me at triality@advancedwebaid.com or send me an instant message with my aol screen name triality15 or my icq number 120242978.

Thanks