Hi peeps
I have this code to show some rotating banners/ads
Code:
<p align="center">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/bashyshosting.jpg' border='1'></a>"
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/webhosting.gif' border='1'></a>"
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/bashyshosting.jpg' border='1'></a>"
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/webhosting.gif' border='1'></a>"
banner[number++] = "<a href='http://www.credit-busters.co.uk' target='_blank'><img src='http://www.bashys-place.com/images/credit.gif' border='1'></a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
<br />
<font color="#008000"><b><br>If you wish to advertise here?<br>Please </b></font>
<b><a href="http://www.bashys-place.com/forums/advertise.php">
<font color="#FF0000"><span style="background-color: #FFFF00">View this page</span></font></a></b></p>
Basically, this is shown to all, including guests, I want this so that 1 of my usergroups (VIP) cannot see it and see something else instead.
Can anyone advise please