展开
    分享到:
  • 2011
  • 2012
  • 2013
  • 2014
  • 2015
  • 2016
  • 2017
  • 2018
  • 2019
  • 2020
  • 2021
  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 11
  • 12

2024年11月17日

查看最新

已无更多内容

'; document.getElementById(targetId).innerHTML = oBuf }, killMe: function() { Module.calendarArray[this.calendarId] = null } }; var now1; //window.onload = function() { if (!now) { now1 = new Date(); } else { now1 = now; } //点击某天后的页面处理 function dwgl(day) { $("#n_crili td").removeClass('current'); $("#n_crili td").each(function() { var thisDay = $(this).find('a').html(); if (parseInt(thisDay) < 10) { thisDay = "0" + thisDay; } if (thisDay == day) { $(this).addClass('current'); } }) $("#yidongrili td").removeClass('current'); $("#yidongrili td").each(function() { var thisDay = $(this).find('a').html(); if (parseInt(thisDay) < 10) { thisDay = "0" + thisDay; } if (thisDay == day) { $(this).addClass('current'); } }) } //var oneCalendar = new Module.calendar(); var grobalYear = ''; var grobalMon = ''; var grobalDay = ''; (function() { var now = new Date(); grobalYear = now.Format("yyyy"); grobalMon = now.Format("MM"); grobalDay = now.Format("dd"); //pc日历初始化 var c = new Module.calendar(); c.calendar_day_click = function(sIn) { var str = ""; var year = sIn.substring(0, 4); var mon = sIn.substring(sIn.indexOf("-") + 1, sIn.lastIndexOf("-")); var day = sIn.substring(sIn.lastIndexOf("-") + 1); clickDate = day; if (mon < 10) mon = "0" + mon; if (day < 10) day = "0" + day; var pre_month = ""; if (now.getMonth() + 1 < 10) { pre_month = "0"; } var pre_day = ""; if (now.getDate() < 10) { pre_day = "0"; } var time = new Date(year, mon - 1, day, 0, 0, 0); var start = new Date(2007, 11, 30, 0, 0, 0); if ((time < now) && (time > start)) { var time_1 = year + mon + day; if(time_1<20100506){ str = "http://news.cctv.com/program/C20697/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名 window.open(str); } if(time_1>=20100506&&time_1<20110329){ str = "http://news.cntv.cn/program/C20697/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名 window.open(str); } if(time_1>=20110329&&time_1<20160205){ str = "http://cctv.cntv.cn/lm/wanjianxinwen/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名 window.open(str); } if(time_1>=20160205&&time_1<20160703){ str = "http://tv.cctv.com/lm/wjxw/" + year + mon + day + ".shtml";//这里的地址使用新地址域名例如 window.open(str); } if(time_1>=20160703){ var time2=new Date(year, mon-1, day, 06, 0, 0); if(now start)) { var time_1 = year + mon + day; if(time_1<20100506){ str = "http://news.cctv.com/program/C20697/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名 window.open(str); } if(time_1>=20100506&&time_1<20110329){ str = "http://news.cntv.cn/program/C20697/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名 window.open(str); } if(time_1>=20110329&&time_1<20160205){ str = "http://cctv.cntv.cn/lm/wanjianxinwen/" + year + mon + day + ".shtml";//这里的地址使用他之前的地址域名 window.open(str); } if(time_1>=20160205&&time_1<20160703){ str = "http://tv.cctv.com/lm/wjxw/" + year + mon + day + ".shtml";//这里的地址使用新地址域名例如 window.open(str); } if(time_1>=20160703){ var time2=new Date(year, mon-1, day, 06, 0, 0); if(now"); $(".suctionW span").eq(0).html(year + "-" + mon + "-" + day); //listloading(".rililanmu19629_ind01 .rililistbox", 20); //如果日期为今天则隐藏返回今天按钮,否则显示 //if(now.Format("yyyyMMdd")==(year+mon+day)){ // $(".backday").hide(); // $(".rililanmu19629_ind01 .rililistbox .rilititle span").hide(); // }else{ // $(".backday").show(); // if ($(window).width() < 1024) { //$(".rililanmu19629_ind01 .rililistbox .rilititle span").show(); // } // } //如果是浮层点的,则调用top if ($(".riliSuction").length > 0) { $("body,html").animate({ scrollTop: $(".rililanmu19629_ind01").offset().top }, 100); } var chooseYear = year + '年'; var chooseMonth = mon + '月'; $(".select_year input").eq(0).val(chooseYear); $(".selecttxt2 input").eq(0).val(chooseMonth); dwgl(day); $(".rililanmu19629_ind01 .yidongrili .calendar .day_box .moon .close i").click(); } else { if (typeof ifIndex != 'undefined' && ifIndex) { var dd = year + "/" + mon + "/" + day; var a = new Date(dd); a = a.valueOf(); a = a - 24 * 60 * 60 * 1000; a = new Date(a); year = a.getFullYear(); mon = a.getMonth() + 1; day = a.getDate(); Number(mon) < 10 ? mon = '0' + mon : null; Number(day) < 10 ? day = '0' + day : null; var str2 = "//tv.cctv.com/lm/wjxw/day/" + year + mon + day + ".shtml"; contentShow(str2, year, mon, day, true); return; } else { $(".lanmu19629_notjm_shadow").show(); $("#tipsEject").html("节目尚未播出,暂时无法查看!建议您:更换时间查询。"); return "no"; } } }) } //页面初始化 if (window.location.href.indexOf("pageId=") == -1) { var matchNowDate = now.Format("yyyy") + '-' + now.Format("MM") + '-' + now.Format("dd"); var pageDate = $(".rilititle p").text(); if (matchNowDate == pageDate && $("#content").html().length > 0 && $("#content").html() !== ' ') { //不做任何处理,直接呈现数据 console.log($("#content").html()); dwgl(now.Format("dd")); dataDate = matchNowDate; $(".suctionW span").eq(0).html(pageDate); } else { var yestoday = new Date(now.getTime() - 1000 * 60 * 60 * 24); var strt = "//tv.cctv.com/lm/wjxw/day/" + yestoday.Format("yyyy") + yestoday.Format("MM") + yestoday.Format( "dd") + ".shtml"; $(function() { contentShow(strt, yestoday.Format("yyyy"), yestoday.Format("MM"), yestoday.Format("dd"), true); }) } } //$(".backday").hide(); //$(".rililanmu19629_ind01 .rililistbox .rilititle span").hide(); var chooseYear = now.Format("yyyy") + '年'; var chooseMonth = now.Format("MM") + '月'; $(".select_year input").eq(0).val(chooseYear); $(".selecttxt2 input").eq(0).val(chooseMonth); //页面监听 var mobileChange = false; var mobileMonth = ''; window.setInterval(function() { var year = $(".select_year input").eq(0).val(); var month = $(".selecttxt2 input").eq(0).val(); if ($(window).width() < 1024) { var year = ''; var month = ''; $(".yidongrili .list1 li").each(function() { if ($(this).hasClass('swiper-slide-active')) { year = $(this).html(); } }); $(".yidongrili .list2 li").each(function() { if ($(this).hasClass('swiper-slide-active')) { month = $(this).html(); } }); mobileMonth = month; var nowYear = new Date().Format("yyyy"); if (!mobileChange) { if (year == nowYear) { var nowMonth = new Date().Format("MM"); var index = 0; $(".yidongrili .list2 li").each(function(i) { var thisMonth = $(this).html(); if (nowMonth == thisMonth) { index = i; } }) $(".yidongrili .list2 li:gt(" + index + ")").hide(); swiper02.init(); swiper02.slideTo(index); mobileChange = true; } } year = year + '年'; month = month + '月'; if ((chooseYear != year || chooseMonth != month) && mobileChange) { Module.calendarArray[1].showCalendar('yidongrili', parseInt(month.replace('月', '') - 1), year .replace('年', ''), null) var changeYear = false; if (chooseYear != year) { changeYear = true; } chooseYear = year; chooseMonth = month; if (year.replace('年', '') == nowYear) { var nowMonth = new Date().Format("MM"); var index = 0; $(".yidongrili .list2 li").each(function(i) { var thisMonth = $(this).html(); if (nowMonth == thisMonth) { index = i; } }) //TODO if (changeYear) { $(".yidongrili .list2 li:gt(" + index + ")").hide(); swiper02.init(); //滑到mobileMonth var index = 0; $(".yidongrili .list2 li").each(function(i) { var thisMonth = $(this).html(); if (mobileMonth == thisMonth) { index = i; } }) swiper02.slideTo(index); mobileMonth = chooseMonth.replace('月', ''); } } else { if (changeYear) { $(".yidongrili .list2 li").show(); swiper02.init(); //滑到mobileMonth $(".yidongrili .list2 li").each(function(i) { var thisMonth = $(this).html(); if (mobileMonth == thisMonth) { index = i; } }) swiper02.slideTo(index); mobileMonth = chooseMonth.replace('月', '');; } } var nowTitle = $('.rilititle p').text(); if (chooseYear == nowTitle.split('-')[0] + '年' && chooseMonth == nowTitle.split('-')[1] + '月') { dwgl(nowTitle.split('-')[2]); } } } else { var nowYear = new Date().Format("yyyy") + '年'; if (year == nowYear) { var nowMonth = new Date().Format("MM") + '月'; var index = 0; $("#riliscrollbar2 li").each(function(i) { var thisMonth = $(this).find('a').html(); if (nowMonth == thisMonth) { index = i; } }) $("#riliscrollbar2 li:lt(" + index + ")").hide(); //如果月份大于当前月则显示为当前月 if (month > nowMonth) { $(".selecttxt2 input").eq(0).val(nowMonth); } } else { $("#riliscrollbar2 li").show(); } if (chooseYear != year || chooseMonth != month) { Module.calendarArray[0].showCalendar('n_crili', parseInt(month.replace('月', '') - 1), year.replace( '年', ''), null) chooseYear = year; chooseMonth = month; //$(".rilititle p").html(grobalYear+'-'+grobalMon+'-'+grobalDay+''); //$(".suctionW span").eq(0).html(grobalYear+'-'+grobalMon+'-'+grobalDay); var nowTitle = $('.rilititle p').text(); if (chooseYear == nowTitle.split('-')[0] + '年' && chooseMonth == nowTitle.split('-')[1] + '月') { dwgl(nowTitle.split('-')[2]); } } } }, 50); //返回今天 function returnToday() { if ($(window).width() < 1024) { swiper01.init(); swiper02.init(); $(".yidongrili .list1 li").removeClass('swiper-slide-active'); $(".yidongrili .list1 li").each(function(index) { if ($(this).html() == now.Format("yyyy")) { swiper01.slideTo(index); } }); $(".yidongrili .list2 li").removeClass('swiper-slide-active'); $(".yidongrili .list2 li").each(function(index) { if ($(this).html() == now.Format("MM")) { swiper02.slideTo(index); } }); } else { } var strt = "//tv.cctv.com/lm/wjxw/day/" + dataDate.split('-')[0] + dataDate.split('-')[1] + dataDate.split('-')[ 2] + ".shtml"; contentShow(strt, dataDate.split('-')[0], dataDate.split('-')[1], dataDate.split('-')[2], true); } var div1 = document.querySelector('.rililanmu19629_ind01 .yidongrili'); div1.addEventListener('touchmove', function(e) { var ev = e || window.event; var touch = ev.targetTouches[0]; e.preventDefault(); })
播出信息
  • 央视新闻

    扫一扫下载

  • 微博

    扫一扫关注

  • 微信公众号

    扫一扫关注

手机访问

扫一扫
手机继续看

中央广播电视总台央视网版权所有