Reply to Re: rotate image daily

Your name:

Reply:


Posted by Steve on 11/10/06 14:49

"password" <fatpipe@epiptaf.com> wrote in message
news:ePmdnesDuJN_GcnYRVnyiA@eclipse.net.uk...
| hello, i am using an automatic image rotator (php) which rotates images on
| refresh or everytime a page is accessed and i was wondering if it is
| possible to make the image change on a daily basis instead. ive been
hunting
| the net but dont seem to be able to find a script that would do this.
|
| i am assuming it is possible but my knowledge of php is very limited.
|
| any help or pointers would be gratefully received and acknowledged.

if you plan on rotating by 90 degrees each day, then simply use modulous
math to determine to angle based on the calendar day. granted, oct. 31 will
display the image at the same rotation as sept. 1, but you have to decide if
that's important or not.

there are 4 directions if 90 degrees per day...so,

$angle = date('d') % 4 * 90;

hth,

me

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация