2022年春节联欢晚会央视春晚节目单热有哪些?


";
$(".cwgw19503_ind02 .list_con .silde").eq(index).find(".right_text .share").append(ss);
var ua = "canvas";
if (navigator.userAgent.indexOf("MSIE") > -1) {
ua = "table"
}
jQuery("#codeqr").qrcode({
render: ua,
foreground: "#000",
background: "#FFF",
width: 102,
height: 102,
text: shareObj.shareUrl
});
}
}
// 春晚进行时
ind04_focusCarousel("#cwgw19503_con06")
function ind04_focusCarousel(obj){
var obj= $(obj);
var activeIndex=0;
var time;
var pic_btn= obj.find(".swiper-pagination .swiper-pagination-bullet");
var pic_li= obj.find(".swiper-wrapper .swiper-slide");
var li_length=pic_li.length;
var pre_btn=obj.find(".swiper-button-prev");
var next_btn=obj.find(".swiper-button-next")
pic_btn.click(function(){
var index=$(this).index();
$(this).addClass("swiper-pagination-bullet-active").siblings().removeClass("swiper-pagination-bullet-active");
pic_li.eq(index).addClass("swiper-slide-active").siblings().removeClass("swiper-slide-active");
pic_li.eq(index).find("img").attr("src",pic_li.eq(index).find("img").attr("data-src"));
activeIndex=index;
})
obj.hover(function(){
clearInterval(time);
},function(){
switch_setInterval();
})
function switch_setInterval(){
time=setInterval(function(){
activeIndex++;
if(activeIndex >= li_length){
activeIndex=0;
}
pic_btn.eq(activeIndex).addClass("swiper-pagination-bullet-active").siblings().removeClass("swiper-pagination-bullet-active");
pic_li.eq(activeIndex).addClass("swiper-slide-active").siblings().removeClass("swiper-slide-active");
pic_li.eq(activeIndex).find("img").attr("src",pic_li.eq(activeIndex).find("img").attr("data-src"));
},2000)
}
switch_setInterval();
pre_btn.click(function(){
activeIndex--;
if(activeIndex = li_length){
activeIndex = 0;
}
pic_btn.eq(activeIndex).addClass("swiper-pagination-bullet-active").siblings().removeClass("swiper-pagination-bullet-active");
pic_li.eq(activeIndex).addClass("swiper-slide-active").siblings().removeClass("swiper-slide-active");
pic_li.eq(activeIndex).find("img").attr("src",pic_li.eq(activeIndex).find("img").attr("data-src"));
})
}
// 我要上春晚
ind03_autoRoll(".cwgw19503_con07")
ind03_autoRoll(".cwgw19503_con09")
function ind03_autoRoll(obj){
var obj=$(obj);
var lin03LiLength = ((obj.find(".rollL .l").length+2))*2;
obj.find(".rollL").css("width",lin03LiLength*376);
obj.find(".rollL .l").clone().appendTo( obj.find(".rollL"));
var time = 0
var intervalHover = setInterval(function(){
var lCurWidth = obj.find(".rollL .l").eq(0).outerWidth(true);
time = time + 1;
if(time >= lCurWidth){
time = 0;
obj.find(".rollL .l").eq(0).appendTo(obj.find('.rollL'));
obj.find(".rollL").css({"left":0});
}
obj.find(".rollL").stop().css({"left":-time});
},15)
obj.find(".rollL").on({
mouseover : function(){
clearTimeout(intervalHover);
} ,
mouseout : function(){
intervalHover = setInterval(function(){
var lCurWidth = obj.find(".rollL .l").eq(0).outerWidth(true);
time = time + 1;
if(time >= lCurWidth){
time = 0;
obj.find('.rollL .l').eq(0).appendTo(obj.find('.rollL'));
obj.find(".rollL").css({"left":0});
}
obj.find(".rollL").stop().css({"left":-time});
},15)
}
}) ;
}
/* 侧边栏 */
var fixedBox = $('.cw18571_fixed_box');
var timer = null;
var throldHold = 100;
var flag = true;
var init = function () {
var clientHeight = document.documentElement.clientHeight;
var showScrollTop = document.documentElement.scrollTop
document.body.scrollTop;
var clientW = $(window).width();
var fixedW = (clientW - 1200)/2 - 255;
if (clientW = clientHeight){
if (flag) {fixedBox.show();};
}else{
fixedBox.css({'position':'fixed', 'right': '110px'});
fixedBox.hide();
}
}else{
if (showScrollTop >= clientHeight){
fixedBox.css({'position':'fixed', 'right': fixedW+'px'});
if (flag) {fixedBox.show();};
}else{
fixedBox.css({'position':'fixed', 'right': '110px'});
fixedBox.hide();
}
}
}
init();
window.onresize = window.onscroll = function () {
clearTimeout(timer);
window.timer = setTimeout(init, throldHold);
}
fixedBox.find('.back_top span').click(function () {
$("body,html").animate({scrollTop: 0},300);
return false;
});
fixedBox.find('.close_btn').click(function () {
flag = false;
fixedBox.fadeOut(100);
return false;
});
})
$('body').click(function(e) {
var target = $(e.target);
if(!target.is('#codeqr')&&!target.is('.cwgw19503_ind02 .list_con .silde .right_text .share a.weixin')){
$(".ind01cntvshare_weixin").remove()
}
});
扫码用手机看
返回顶部
1 /
}

我要回帖

更多关于 央视春晚节目单热 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信