// JavaScript Documentfunction countdown(){ var set_y = 2009 var set_m = 6 var set_d = 2 var now = new Date() var spday= new Date(set_y,set_m-1,set_d) a = (spday.getTime() - now.getTime())/(24*60*60*1000) a= Math.ceil(a) if(a >0) document.write("<p>2009年6月2日<br />横濱開港150周年まであと<br /><span>",a,"日</span></p>") else if(a==0) document.write("<p>本日2009年6月2日横濱開港150周年！！</p>") else if(a <0) document.write("<p>2009年6月2日横濱開港150周年から",-a,"日</p>");}