﻿
var JTtoDay,JTtYear,JTtMonth,JTtToday,JTthistime
var JTbigPic,JTsmallPic,JTsTime,JTeTime
JTbigPic="http://www.bljtj.gov.cn/images/cj2012-1-1.jpg";//节日图片
JTsmallPic="http://www.bljtj.gov.cn/images/cj2012-1-1-2.jpg"//关闭按钮
JTsTime=20120122;//开始时间(格式是年月日组合,比如2012-01-01等于20120101)
JTeTime=20120129;//结束时间
JTtoDay = new Date();
JTtYear = JTtoDay.getYear();
JTtMonth = JTtoDay.getMonth()+1;
JTtToday = JTtoDay.getDate();
JTthistime = JTtYear*10000+JTtMonth*100+JTtToday
if (JTthistime>=JTsTime && JTthistime<=JTeTime)
{
document.write('<div id="JTposi" style="position:absolute; right:10px; top:10px; width:400px; height:425px;z-index:99999;">');
document.write('<img src="'+JTbigPic+'" border="0">');
document.write('<div align="right" style="position:absolute;right:4px;top:4px; width:40px; height:13px;"><a href="#" onClick=document.getElementById("JTposi").style.display="none"><img src="'+JTsmallPic+'" border="0"></a></div>');
document.write('</div>');
}

