if the array has one image.. daily that one image should display.
if the array has two image, then 1st day--- 1st image. 2nd day--- 2nd image, 3rd day--- again 1st image.
Can any one please tell me the logic to do this? waiting for your reply.
I am manually checking array length and assigning the image. I need some dynamic calculation for assigning the image. Also this code works only upto 14 images. I need to display even the array length is 25, 50 etc...
Re: how to display one image per day from an array?
Thendral, in my opinion you are complicating your work. Why not to have 7 images in array and then you have no need for additional calculations. Just find out which day of week is currently and call array position to retrive image.
If you still feel funky then you can setup 31 images and acording to day in the month you call relevant image. Then you have image for each day
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.