|
Adding a Rotating Banner/Ad to VBAdvanced CMPS
This modification is in the archives.
This will add an advertisement to all your VBAdvanced CMPS pages.
So here you go: In the style manager edit the template "adv_portal" Find Code:
<body> Code:
<body onLoad="ranImage();window.status='YOUR SITES NAME';"> Add a new template named "adv_portal_advertisement" Copy this into it and update it to link to your images and URLS: Code:
<!-----Banner ads-------->
<SCRIPT LANGUAGE="JavaScript">
pix=new Array("http://www.YOUR-IMAGE-LINK-1","http://www.YOUR-IMAGE-LINK-2","http://www.YOUR-IMAGE-LINK-3") ;
links=new Array("http://www.URL-FOR-IMAGE-1","http://www.URL-FOR-IMAGE-2","http://www.URL-FOR-IMAGE-3") ;
imCt=pix.length;
function ranImage(){
ran=Math.floor(Math.random()*imCt);
document.images["image"].src=pix[ran];
document.getElementById("IMFbanner") .href=links[ran];
}
</script>
<!----- ads----------->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"
class="tborder" width="100%">
<tr>
<td class="tcat"><b><DIV ALIGN=CENTER>Advertisement</b></div></td>
</tr>
<tr>
<td class="alt1" align="center"><BR>
<a href="http://www.URL-FOR-IMAGE-1" id="IMFbanner" target="_blank"><img src="http://www.YOUR-IMAGE-LINK-1" name="image" border="0"></a>
<BR>
</td>
</tr>
</table>
<br />
<!-----end ads----------->
<!-----End Banner ads-------->
Title: Advertisement Template to include: advertisement Active: Yes you MUST tick YES to updating all pages or you will get an error. Download No files for download. Screenshots
|
|||||||||