answer here or there, i don't care, this is driving me batty
javascript: date-conditional image swapping
― Tracer Hand (tracerhand), Thursday, 3 April 2003 20:21 (twenty-one years ago) link
How about something like this? (don't know if ILX is going to screw up my script)
<script language="JavaScript"><!--var day = new Date();var month = day.getMonth();document.write('<img src="images/' + month + '.jpg" alt="This is month number ' + month + '">');//--></script>
― Paul Eater (eater), Thursday, 3 April 2003 20:38 (twenty-one years ago) link
― Paul Eater (eater), Thursday, 3 April 2003 20:40 (twenty-one years ago) link
I've actually managed to do it, but with a long list of "if - else" statements which bogs the whole thing down and makes the page take forever to load.
― Tracer Hand (tracerhand), Thursday, 3 April 2003 20:48 (twenty-one years ago) link
― Paul Eater (eater), Thursday, 3 April 2003 21:13 (twenty-one years ago) link
― Tracer Hand (tracerhand), Thursday, 3 April 2003 23:03 (twenty-one years ago) link