Mar 12, 2002 #1 johnv20 Programmer Sep 26, 2001 292 US Hi, does anyone have any javascript code which will allow a different image to be displayed on a page every day ? Thanks
Hi, does anyone have any javascript code which will allow a different image to be displayed on a page every day ? Thanks
Mar 12, 2002 #2 ojf Instructor Sep 27, 2000 49 NO I do not have a javascript, but pure ASP will do the job. If you name your images 1.gif, 2.gif, 3.gif, ... , 31.gif then you may use this: <% pic=Day(now()) & ".gif" %> <img src='<%=pic%>' border=0> Of course, this assumes that all your images have the same extension, ie .gif. Ojf Upvote 0 Downvote
I do not have a javascript, but pure ASP will do the job. If you name your images 1.gif, 2.gif, 3.gif, ... , 31.gif then you may use this: <% pic=Day(now()) & ".gif" %> <img src='<%=pic%>' border=0> Of course, this assumes that all your images have the same extension, ie .gif. Ojf
Mar 13, 2002 Thread starter #3 johnv20 Programmer Sep 26, 2001 292 US Perfect thanks all Upvote 0 Downvote