> -----Message d'origine-----
> De : Chris Carter [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 14 février 2007 17:29
> À : php-general@lists.php.net
> Objet : [PHP] Banner rotation with links
> 
> 
> How can I rotate a banner as well as the link in it within a 
> page using PHP.
> This can be done as a include file php. Anybody please supply 
> some code or a link for this.
> 
> Thanks in advance.

Hi depends on "what moment you are changing the banner" if you are doing it
on a page change you can do this with PHP by querying a DB for a random
banner (or non random thats up to you to decide) entry to display, each time
you load the page.

If you are wanting to do the "banner change" based on a time interval you
would have to setup some javascript to do this for you, maybe generate it
using php that formerly queried a database of banner entries.

Google: banners +javascript first before posting, there's always an answer
;)

Regards,

Tim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to