|
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]
|