Y
Yeah
I have a web site which changes the header logo based on the upcoming
holiday.
For example, from December 10th to 25th, XMAS.JPG is displayed. From October
20th to 31st, HALLWEEN.JPG is displayed. Etc. etc. If today's date is not
near a holiday, then the default LOGO.JPG is displayed.
A while back, I was looking for a JavaScript that does this automagically.
But each snippet I found traditionally displays the default logo for a
second, then switches to the holiday logo. I had one years ago that
*instantly* displays the correct logo (but I misplaced it).
Can anybody point me to a more efficient JavaScript solution? Any help is
appreciated. Thanks!
holiday.
For example, from December 10th to 25th, XMAS.JPG is displayed. From October
20th to 31st, HALLWEEN.JPG is displayed. Etc. etc. If today's date is not
near a holiday, then the default LOGO.JPG is displayed.
A while back, I was looking for a JavaScript that does this automagically.
But each snippet I found traditionally displays the default logo for a
second, then switches to the holiday logo. I had one years ago that
*instantly* displays the correct logo (but I misplaced it).
Can anybody point me to a more efficient JavaScript solution? Any help is
appreciated. Thanks!