would like to rotate ads on a page
After using AdSense adverts on my site for the better part of a year, I'd like to do something similar with my own advertisements. I suppose I would use Javascript?
Is there somewhere a template I could use or adapt for this purpose? I envision a rectangle like the AdSense 180x150 pixel script. Over time, I would plant it on every page on my site. It would call up one of say five text or graphic advertisements in rotation.
Which five these were I would like to control myself, saying by uploading one.htm, two.htm, three.htm etc to my website. So when I wanted to replace one, I would just upload a revised *.htm file.
Does this make sense?
Suzanne posted this at 19:34 — 20th May 2004.
She has: 5,507 posts
Joined: Feb 2000
yes, but it would make more sense to have them in a database and use server-side processing!
You can still offer a random ad using JavaScript, too, though.
I'm moving this to the right forum.
Busy posted this at 22:56 — 20th May 2004.
He has: 6,151 posts
Joined: May 2001
The code itself in PHP is real easy but you don't say if you want the items tracked or what not, if you do you need a database or flatfile (some hosts dont allow flatfile db's).
If you don't want to track them, for the actual random script you dont even need seperate pages, just one file and place all your text, image detail or whatever in there and then you just include that file into every page you want it in.
It can be as simple or as complex as you wish.
Try hotscripts.com for some as well
cubdriver posted this at 21:35 — 21st May 2004.
They have: 13 posts
Joined: Oct 2003
Thanks, I will look at hotscripts.
(No, I don't need tracking.)
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.