RE: Banner rotation with links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

> -----Message d'origine-----
> De : Chris Carter [mailto:chandan9sharma@xxxxxxxxx] 
> Envoyé : mercredi 14 février 2007 17:29
> À : php-general@xxxxxxxxxxxxx
> Objet :  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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux