By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,742 Members | 1,570 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,742 IT Pros & Developers. It's quick & easy.

Random display of 10 text / banners on a page??

P: n/a
If you can help me, I'd be grateful. Long story short... I am looking
for cut/paste html code (that even a dummy like me can't screw up).
Here is what I want:

I want a web page to display ten (10) different text ads and/or banner
ads on the page. However, I want the page to change the order of the
ten different ads each time it is displayed. It can either randomly
select the order OR rotate the order of the ads so that everybody gets
an equal turn at being at the top of the page. Whichever one is
easiest (i.e. random / rotation) is fine with me.

If anybody knows the html code to do this, PLEASE PLEASE let me know...
Thanks GREATLY in advance!!

Nov 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Try searching google for something like: javascript random image
rotation

Link: http://www.google.com/search?q=javas...image+rotation

There are many freely available Javascript solutions to this problem.

Cheers,
Matt
--
EditMe - Edit your web.
http://www.editme.com

Nov 23 '05 #2

P: n/a
On 21 Nov 2005 15:37:28 -0800, "Matt - EditMe.com" <wi*****@gmail.com>
wrote:
Try searching google for something like: javascript random image
rotation

Link: http://www.google.com/search?q=javas...image+rotation

There are many freely available Javascript solutions to this problem.

But all the people without Javascript will always get the ads in the
same order. (Or more likely, given the quality of most Javascript on the
web, not at all. Something which I as a reader am not going to object
to, but an informed advertiser would.) If it's important to do it right,
do it server-side in something like PHP or JSP.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.