I'm trying to get this script to work. I want an image displayed based on the current holidays throughout the year. Any help would be great. Thanks a ton!
<script type="text/javascript">
function H(){
var s=new Date();
var isHalloween=
(s.getMonth()==9 && s.getDate()>26) ||
(s.getMonth()==10 && s.getDate()<3);
var isXmas=
(s.getMonth()==9 && s.getDate()>26) ||
(s.getMonth()==10 && s.getDate()<3);
var isNewYear=
(s.getMonth()==11 && s.getDate()>26) ||
(s.getMonth()==0 && s.getDate()<3);
document.images["seasonal"].src=
isNewYear?"http://scientopia.org/blogs/scicurious/files/2010/12/happy-new-year.jpg":isXmas?"http://www.christmas39.com/wp-content/uploads/2011/10/Xmas-Pictures.jpg":isHalloween?"http://img.pcdn.vresp.com/media/5/3/1/5316e5746f/12e4b49333/86530fdfb4/library/halloween1.jpg":"http://dev.w3.org/2007/mobileok-ref/test/data/ROOT/GraphicsForSpacingTest/1/largeTransparent.gif" ;
}
onload=H;
</script>
<body>
<img src="http://dev.w3.org/2007/mobileok-ref/test/data/ROOT/GraphicsForSpacingTest/1/largeTransparent.gif" name="seasonal">
</body>