/*+++++hj_go_18+++++*/ /*+++++hj_end_18+++++*/ /*+++++hj_go_4+++++*/ hj_mk_4_dqlunboshi=1; $(document).ready(function(){ hj_mk_4_recalculateImageLayout(); // 初始加载时计算一次图片布局 $(window).resize(hj_mk_4_recalculateImageLayout); // 绑定窗口缩放事件来重新计算布局 function hj_mk_4_recalculateImageLayout() { var hj_mk_4_kuandu=$("#hj_mk_4_datu").width(); var hj_mk_4_zi = $("#hj_mk_4_datu").children(); var hj_mk_4_jige = $(".hj_mk_4_datu").length; var hj_mk_4_dadivW = $("#hj_mk_4_datu").parent().width(); console.log(hj_mk_4_kuandu); console.log(hj_mk_4_dadivW); $("#hj_mk_4_datu").css( { width:hj_mk_4_jige*hj_mk_4_dadivW+'px' } ); $(".hj_mk_4_datu").css({ width:hj_mk_4_dadivW+'px'}); } }) function hj_mk_4_datujs(hj_mk_4_kzhi) { hj_mk_4_dqlunboshi=hj_mk_4_kzhi; var hj_mk_4_jige = $(".hj_mk_4_datu").length; for(var i=0;i 1) { hj_mk_4_dqlunboshi = hj_mk_4_dqlunboshi-1; } else { hj_mk_4_dqlunboshi = hj_mk_4_jige; } hj_mk_4_datujs(hj_mk_4_dqlunboshi); hj_mk_4_lunbojs=setInterval('hj_mk_4_datujs176x()',6000); } function hj_mk_4_youjantounanniu() { clearInterval(hj_mk_4_lunbojs) var hj_mk_4_jige = $(".hj_mk_4_datu").length; if(hj_mk_4_dqlunboshi >= hj_mk_4_jige) { hj_mk_4_dqlunboshi = 1; } else { hj_mk_4_dqlunboshi = hj_mk_4_dqlunboshi+1; } hj_mk_4_datujs(hj_mk_4_dqlunboshi); hj_mk_4_lunbojs=setInterval('hj_mk_4_datujs176x()',6000); } function hj_mk_4_datujs176x() { var jige = $(".hj_mk_4_datu").length; if(jige>1) { if(jige == hj_mk_4_dqlunboshi) { hj_mk_4_datujs(1) } else { hj_mk_4_datujs(hj_mk_4_dqlunboshi+1) } } } $(document).ready(function(){ hj_mk_4_lunbojs=setInterval('hj_mk_4_datujs176x()',6000); }); var hj_mk_4_box1 = document.getElementsByClassName('hj_mk_4_lunbo'); hj_mk_4_box1[0].ontouchstart = function(e){ var hj_mk_4_touch = e.touches[0]; hj_mk_4_x = Number(hj_mk_4_touch.clientX); hj_mk_4_y = Number(hj_mk_4_touch.clientY); }; hj_mk_4_box1[0].ontouchmove= function(e){ var hj_mk_4_touch = e.touches[0]; hj_mk_4_xxx = Number(hj_mk_4_touch.clientX); hj_mk_4_yyy = Number(hj_mk_4_touch.clientY); }; hj_mk_4_box1[0].ontouchend= function(e){ var hj_mk_4_touch = e.touches[0]; var hj_mk_4_jige = $(".hj_mk_4_datu").length; if(hj_mk_4_x-hj_mk_4_xxx>30 && hj_mk_4_dqlunboshi1) { hj_mk_4_zuojantounanniu(); } }; /*+++++hj_end_4+++++*/ /*+++++hj_go_6+++++*/ /*+++++hj_end_6+++++*/ /*+++++hj_go_7+++++*/ $(".hj_mk_7_anniu_box .hj_mk_7_anniubox_anniu").hover(function(){ $(this).siblings().removeClass("hj_mk_7_active"); $(this).addClass("hj_mk_7_active"); $(this).parents(".hj_mk_7_hsxm").find(".hj_mk_7_neirong_box .hj_mk_7_neirongbox_neirong").removeClass("hj_mk_7_neirongbox_active"); $(this).parents(".hj_mk_7_hsxm").find(".hj_mk_7_neirong_box .hj_mk_7_neirongbox_neirong").eq($(this).index()).addClass("hj_mk_7_neirongbox_active"); }); /*+++++hj_end_7+++++*/ /*+++++hj_go_168+++++*/ /*+++++hj_end_168+++++*/ /*+++++hj_go_8+++++*/ /*+++++hj_end_8+++++*/ /*+++++hj_go_9+++++*/ /*+++++hj_end_9+++++*/ /*+++++hj_go_10+++++*/ /*+++++hj_end_10+++++*/ /*+++++hj_go_12+++++*/ $("template_hj_12 .hj_mk_12_news .hj_mk_12_news_type li").mouseenter(function () { $(this).addClass("hj_mk_12_cur").siblings().removeClass("hj_mk_12_cur"); $("template_hj_12 .hj_mk_12_news .hj_mk_12_news_con .hj_mk_12_conbox").eq($(this).index()).addClass("hj_mk_12_cur").siblings().removeClass("hj_mk_12_cur"); }) /*+++++hj_end_12+++++*/ /*+++++hj_go_13+++++*/ /*+++++hj_end_13+++++*/ /*+++++hj_go_166+++++*/ /*+++++hj_end_166+++++*/ /*+++++hj_go_15+++++*/ /*+++++hj_end_15+++++*/