Forum Moderators: coopster

Message Too Old, No Replies

Revolving text on refresh

Advice needed please

         

AcidCheerios

10:16 pm on Mar 17, 2009 (gmt 0)

10+ Year Member



Hi,

I need a bit of direction in how to go about doing this please.

I'm getting together a site which will be optimised for mobile phones. The site is just a list of offers from local business in my town.

What I need to do is get a script that revolves the text ads each time the page is refreshed (the top ad goes to the bottom). The text ads are real simple and people just scroll down them on their mobiles.

There's gonna be about 50 ads on the page. Is this hard to do? I really haven't a clue about this stuff so any help would be greatly appreciated.

Thanks

This is sample of what the text ads will look like.

---------------------------

Dog & Gun
2 for 1 Offer
Order any meal and get the
second absolutley free!

South Bar, Bristol
01295 829511
Valid Until 23.03.09

---------------------------

The Ship
2 for 1 Offer
Order any meal and get the
second absolutley free!

South Bar, Bristol
01295 123876
Valid Until 23.03.09

---------------------------

The Admiral
2 for 1 Offer
Order any meal and get the
second absolutley free!

South Bar, Bristol
01295 2676242
Valid Until 23.03.09

---------------------------

The Bell
2 for 1 Offer
Order any meal and get the
second absolutley free!

South Bar, Bristol
01295 2676242
Valid Until 23.03.09

---------------------------

whoisgregg

3:21 pm on Mar 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, AcidCheerios!

How are you storing the ads now?

If they're in a database, it might be enough to just do an ORDER BY RAND() when you grab an ad.

If you are storing them in a flat file or in the PHP script, then you can load them into an array and call shuffle() [php.net] to mix them up.

AcidCheerios

10:47 pm on Mar 18, 2009 (gmt 0)

10+ Year Member



Hi whoisgregg,

Thanks for the reply.

I guess they'd be in a flat file (I think!?!) At the moment they're just gonna be posted up on the site as they come in from the emails.

Do I keep a separate page with the ads on to then call up?

I've kept the site real simple as it's for mobile phone browsers.

I really haven't a clue how to set this revolving thing up. So if anyone knows how to do it I'll pay.

I've only got basic dreamweaver knowledge and all this php stuff hurts my head!