View Full Version : Adding a rotating text ad banner
larry suttles
11-30-2012, 04:10 PM
I'm wanting to make this text ad slot (see attachment) a rotating text add. Ant ideas as to how I can get this done? Thanks
Stefan118
11-30-2012, 08:55 PM
You mean something like this:
<center>
<script language="JavaScript">
images = new Array(4);
images[0] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new' style='text-decoration: none'>Text banner 1</a>";
images[1] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new' style='text-decoration: none'>Text banner 2</a>";
images[2] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new' style='text-decoration: none'>Text banner 3</a>";
images[3] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new' style='text-decoration: none'>Text banner 4</a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
</center>
larry suttles
12-02-2012, 03:15 AM
sweeeeeet! thank you playa
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.