PDA

View Full Version : need day-of-the-month image script


geeksRus
01-31-2003, 03:24 AM
i am looking for a script that will display one image depending on the day of the month. i have found many scripts that will do this by the week but none for an entire month. i do not want a random script. i am not much at writing scripts and would really appreciate any help. thanx much in advance.

chrismiceli
01-31-2003, 04:19 AM
you would have to put images into an array and then get day, something like this

imag = new Array();
imag[0] = "1st.jpg";
imag[1] = "2nd.jpg";
//etc
test = new Date();
test = test.getMonth();
document.write("<img src='" + imag[test] + "'>");

geeksRus
01-31-2003, 04:21 AM
thanks so much for the very fast reply :)