Banner Ads
Hi everyone! I am a newbie here. I tried searching for the answer to my question for days now with no luck. I have about 7 advertisers on my site and I am searching for a free script that will place every banner on every page of my site (using php includes) and have it "rotate". Everytime someone clicks on another page, the banners are in different order. By doing this, every ad has a chance to be first.
Every script I've looked have one banner location that cycles through a list of banners and I don't want that. Also, I am using PhpAdsNew for banner management.
Thanks in advance for any help. *fingers are crossed*
Sam
Busy posted this at 19:43 — 16th March 2006.
He has: 6,151 posts
Joined: May 2001
When you say rotate, are you meaning display all 7 banners on each page, like a big animated gif ?
If so then thats worse as people wont be watching the banners and wont know they are changing (unless they are real annoying), people will be reading/looking at the content which is usually in a screen view outside the banners, perfect example, without going to the top of the page can you remember what the banner was on this page? how about just the colour of it, or if it was animated or static?
The cycle method is the way to go, otherwise you'd have to set the banner per page, but if person Z didn't go to X page banners A,B,C wont be displayed.
Sam06 posted this at 22:45 — 16th March 2006.
They have: 2 posts
Joined: Mar 2006
Thanks for your response. I would like all 7 banners to be visible. For example if you arrive at mydomain.com/page.php. on the rightside of the page you will see a list of banners (like banner #1, banner #3 etc.) If you go to another page you will still see the banners, but in different order.
So to sum it up...
I would like all banners to be visible, but once a user go to another page, the banners would be in a different order. (Also I didn't want the banner to "refresh on the page, they will only switch the order if they go to other pages.
Thanks again.
Busy posted this at 09:03 — 17th March 2006.
He has: 6,151 posts
Joined: May 2001
I think I get you now, you want to display all 7 banners in different orders on each page.
Ok good news it can be done, bad news is not easy.
Start with the bad first,
Because you have no control over the entry page of the site you can't control the beginning of the cycle, unless (good news) you use cookies to find out if it's the first page
You could just use an array with the banners names in it, and start at 0 (for 1st), 1 (for second) ... then next page start from 1 (which is 2nd image), then 2 (which is third image) ....
remember arrays start at 0 not 1
But ideally you need to use cookies with it so you know where you are at, this way if someone went from page 1 to page 3 back to page 1 then to page 2 they would get 4 different results in stead of just 3 if hard coded.
Also because you can't control entry page, nor exit page, you can't control how many are actually showen, a cookie could keep track of it for their next visit (if they except the cookie) but from the array you would always at least see the listed order
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.