Forum Moderators: open

Message Too Old, No Replies

Weekly Image Rotation

         

og_dakini

5:04 pm on Nov 28, 2006 (gmt 0)

10+ Year Member



Hey,

I'd like to adapt a script from the image of the day to the image of the week. For now, I have 20 images and will probably add some more. Every monday, I want to change my image. I dont' know how to process.
Thank you

Dakini

Fotiman

5:38 pm on Nov 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome!

You should be using server side processing to serve up a different image. The "image of the week" is content.

[edited by: Fotiman at 5:38 pm (utc) on Nov. 28, 2006]

Trace

7:44 pm on Nov 28, 2006 (gmt 0)

10+ Year Member



Just stick 52 images into an array and call the image according to the week number of the year.

Google "javascript week number" to find the week number.

Candid India

11:03 am on Dec 2, 2006 (gmt 0)



The suggestion of trace is most feasible as you should

Just stick 52 images into an array and call the image according to the week number of the year.

Google "javascript week number" to find the week number.