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 .
how ads(.swf files) will display randomly
Moderator: General Moderators
- 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
cnu123 wrote: I want code for this.
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.cnu123 wrote: It's just like in Yahoo site.
It's urgent.
please help me .
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.
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.