Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

different image every day

Status
Not open for further replies.

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
 
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()) & &quot;.gif&quot;
%>


<img src='<%=pic%>' border=0>

Of course, this assumes that all your images have the same extension, ie .gif.

Ojf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top