Forum Moderators: phranque

Message Too Old, No Replies

Rotating Banners on my site

How to rotate a clients banner...javaScript?

         

bartainer

3:31 pm on Apr 4, 2006 (gmt 0)

10+ Year Member



Hello,

How can I accomplish rotating a clients' banner on my web site? I have multiple banners and I have never tried rotating them. E.g. I have five banners and and five postions at the top of my site. I'd like to gaurantee a top position for each client on various days. However, can this be done automatically? If so, please explain.

Thanks.

webdoctor

10:07 am on Apr 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How are you creating and serving pages?

Do you use a CMS?

Are you using a scripting language (PHP/ASP)?

tomda

10:15 am on Apr 5, 2006 (gmt 0)

bartainer

1:42 pm on Apr 5, 2006 (gmt 0)

10+ Year Member



I am using PHP.

Foreva

1:59 pm on Apr 5, 2006 (gmt 0)

10+ Year Member



If you are going to need this feature (rotating banners) in future and you are going to use more banners,
i would suggest to use free open-source and very powerful banner rotating system - [phpadsnew.com...]
It requires MySQL and cron.

Otherwise it will be overkill and you can just use some
basic JS.

tomda

2:08 pm on Apr 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Bartainer, if you PHP then the example shown in the link above, the one using array (in an include file) is a very simple solution if you only have a few banners.