how ads(.swf files) will display randomly

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
cnu123
Forum Newbie
Posts: 4
Joined: Thu Jul 07, 2005 8:07 am

how ads(.swf files) will display randomly

Post by cnu123 »

hai friends,
I am developing a site which is display adds in certain places at randomly and rotate with multiple ads.
I want code for this.
It's just like in Yahoo site.
It's urgent.
Plz help me .
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: how ads(.swf files) will display randomly

Post by Chris Corbyn »

cnu123 wrote: I want code for this.
:roll:
cnu123 wrote: It's just like in Yahoo site.
It's urgent.
please help me .
You mean you want someone to write the code for you? What's so urgent about some adverts like Yahoo? Try contacting the groups who produce these adverts. It's called per per click advertsing.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

1) Get a file listing for the directory holding all the ads
2) Transfer that file listing to an array
3) Call array_rand() on that array to get a random item
4) Just saying "I want code for this" generally won't get you much help. Show us what you've got so far and we'll be glad to help.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply