A PHP Script To Shuffle The Banners
- Filed under: Blogging, Personal, Widgets & gadgets
- Date: May 6,2008
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
I was looking for a PHP script to shuffle the 125×125 banners on the right column and all I could find were scripts to rotate visibility of multiple banners in one spot. The scripts I found would only show one banner from a list of banners every time the page is loaded. But, what I was looking for, was one script that will change the positions of the banners(shuffling) every time the page is loaded.
So, in the end, I decided to do it myself(of course, with the help of the examples - starting a script from scratch is a real pain!). And yes, the script is ready, you can see it in action here. It’s just a simple page, with the words one, two, three, four, five and six on each line. Each of the words will represent a banner, and you will notice the positions of the words changing every time you hit the refresh button.
I haven’t integrated the shuffling script in the banners on the right column yet, so you won’t see them see them changing positions if you refresh now(at this time of writing). Once I do it, I will start selling them as advertising space for a monthly payment. It’s obvious that each advertiser will have fair chances of their banner showing at the top of the list and hence better chances of getting clicked. Also, I will use the nofollow tag when linking to the advertiser site, to be fair with the search engine. After all, profits come from real human visitors, not robots and crawlers.
Anyways, I’m hoping to add the script in the new few days, so keep checking and if you haven’t subscribed to the feeds yet, do so now to get the blog updates in your inbox.
UPDATE: I have now added the shuffling script on the six 125×125 banners on the right sidebar, so from now, every time this page or any page on FusionFoot.com is loaded, the banners will change positions haphazardly. Next step, I’m going to setup up an “Advertise Here” page to list the advertising options…
Related posts:






























Leave a comment