日历查询
';
oBuf += '
';
oBuf += '
';
oBuf += '';
for (var e = 0; e < 7; e++) {
tmpStartDay = tmpStartDay % 7;
if (tmpStartDay == 6) {
oBuf += '' + this.L_calendarDayNames_text[tmpStartDay] + ' | ';
} else {
oBuf += '' + this.L_calendarDayNames_text[tmpStartDay] + ' | ';
}
tmpStartDay++;
}
oBuf +="
"
var nextMonthFirstDay = new Date(dYear, dMonth + 1, 1);
var IsNextMonthFirstDaySunday = nextMonthFirstDay.getDay() == 0;
for (var iRows = 0; iRows < 6; iRows++) {
dCurrentMonthDate = new Date(dCurFD.getFullYear(), dCurFD.getMonth(), dCurFD.getDate() + iDays);
if (iRows == 5 && dCurrentMonthDate.getMonth() > dCurFD.getMonth()) continue;
if (iRows == 5 && IsNextMonthFirstDaySunday) continue;
oBuf += '';
for (var iCols = 0; iCols < 7; iCols++) {
dCurrentViewDate = new Date(dCurFD.getFullYear(), dCurFD.getMonth(), dCurFD.getDate() + iDays);
dCurrentViewDateString = "" + dCurrentViewDate.getFullYear() + '-' + (dCurrentViewDate.getMonth() + 1) + '-' + dCurrentViewDate.getDate();
if ((dGivenDate.toDateString() == dCurrentViewDate.toDateString()) && (dDay != 90)) {
if((parseInt(dCurFD.getMonth())+1)==now.Format('M')&&(parseInt(dCurFD.getFullYear()))==now.Format('yyyy')){
oBuf += '' + dCurrentViewDate.getDate() + ' | ';
}else{
oBuf += '' + dCurrentViewDate.getDate() + ' | ';
}
} else {
if (dCurrentViewDate.getMonth() != dMonth || iDays < 0) {
oBuf += '' + dCurrentViewDate.getDate() + ' | ';
} else {
oBuf += '' + dCurrentViewDate.getDate() + ' | ';
};
};
iDays++
};
oBuf +="
"
};
oBuf += '
';
document.getElementById(targetId).innerHTML = oBuf
},
killMe: function() {
Module.calendarArray[this.calendarId] = null
}
};
//点击事件
$(".tab_1 tr").find("td").live("click",function(){
var obj = $(this);
var nbw=obj.attr("onclick");
var arr=nbw.split(/'|-/g);
var mm1=arr[2];
var mm2=arr[3];
Number(mm2)<10?mm2='0'+mm2:null;
Number(mm1)<10?mm1='0'+mm1:null;
var bvn=arr[1]+mm1+mm2;
if(bvn>now.Format('yyyyMMdd')){
//alert("节目不出");
}else{
var str="http://tv.cctv.com/lm/jysj/day/" + bvn + ".shtml";
conten12(str,arr[1],mm1,mm2,obj);
}
});
//点击左右箭头定位高亮
function dwgl(){
//移除所有的高亮
$(".xwlbB151203_ind03 .right_ind03 .tab_1 tr td").removeClass("td_cur");
//获取标题内容和日历标题
var u=$("#SUBD1550483251283932 .md .md_hd .mh_title a").html();
var nma=$(".xwlbB151203_ind03 .right_ind03 .nr_center").html();
//进行截取,获取日期格式
var arrr=u.split(/年|月|日/g);
var arr1=nma.split(/年|月/g);
var oi=arr1[1];
Number(oi)<10?oi='0'+oi:null;
var oii=arrr[2];
var mkj=arrr[0]+arrr[1]+arrr[2];
//如果标题日期和日历日期月份相同
if((arrr[0]+arrr[1])==(arr1[0]+oi))
{
//获取所有日历的长度
var sn=$(".tab_1 tr td").length;
var sd;
//循环取出每一个td
for(var i=7;i
start)){
var time_1 = year + mon + day;
/*if(time_1<20100506){
str = "http://news.cctv.com/program/C20692/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名
window.open(str);
}
if(time_1>=20100506&&time_1<20110329){
str = "http://news.cntv.cn/program/C20692/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名
window.open(str);
}
if(time_1>=20110329&&time_1<20160205){
str = "http://cctv.cntv.cn/lm/xinwensanshifen/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名
window.open(str);
}*/
if(time_1<20190201){
//str = "http://tv.cctv.com/lm/xw30f/" + year + mon + day + ".shtml";//这里的地址使用新地址域名例如
str="http://tv.cctv.com/lm/jysj/videoset/index.shtml";
window.open(str);
return;
}
if(time_1>=20190201){
var time2=new Date(year, mon-1, day, 06, 0, 0);
if(now