Home › Forums › CSS › Image rotation by days of the week? › Re: Image rotation by days of the week?
June 16, 2009 at 3:01 am
#59109
twilightdenka
Member
"AshtonSanders" wrote:
I would use the php date function for day of the week:
Code:
/images/header.jpg
That will output a number representation of the day of the week: 1 (for Monday) through 7 (for Sunday)
So header1.jpg would be Monday’s header.
Thanks but I do not quite understand this. Where am I suppose to place this code? In the <head></head> area? And is that the only line required? Where would my image source be placed?
Would this work?
Code:
/images/header.jpg