$(function(){ /*$(".index_showimg_page1").eq(0).hide(); $(".index_showimg_page2").eq(0).show(); */ $(".investor_con").hide().eq(0).show(); $(".financier_con_matter").hide().eq(0).show(); $(".academy_watch_tab > li").click(function(){ $(".academy_watch_tab > li").removeClass("press").eq($(this).index()).addClass("press"); $(".investor_con").hide().eq($(this).index()).show(); }); $(".financier_tab > li").click(function(){ $(".financier_tab > li").removeClass("press").eq($(this).index()).addClass("press"); $(".financier_con_matter").hide().eq($(this).index()).show(); }); if ($("body").width() > "980") { $(".index_showimg_list_warp").css("width", $("body").width()); $(".index_showimg_list > li").css("width", $("body").width()); } else { $(".index_showimg_list_warp").css("width", "980"); $(".index_showimg_list > li").css("width", "980"); } $(".top_right > li").mouseover(function(){ $(this).children(".top_list").slideDown(300); }); $(".top_right > li").bind("mouseleave", function(){ $(this).children(".top_list").stop(true,true).slideUp(300); }); $(".index_con_left_title").mouseover(function(){ $(".index_con_left_title > a").removeClass("press").eq($(".index_con_left_title").index($(this))).addClass("press"); $(".index_con_left_con").hide().eq($(".index_con_left_title").index($(this))).show(); }); $(".foot_right2").mouseover(function(){ $(this).children(".foot_right2_list").slideDown(300); }); $(".foot_right2").bind("mouseleave", function(){ $(this).children(".foot_right2_list").stop(true,true).slideUp(300); }); $(".left_empty li > a").click(function(){ if ($(this).parent().children(".left_empty1").children("li").children("a").length > 0) { $(this).parent().children(".left_empty1").show(); return false; } }); $(".left_empty1 li > a").click(function(){ if ($(this).parent().children(".left_empty2").children("li").children("a").length > 0) { $(this).parent().children(".left_empty2").show(); return false; } }); var obj1 = $(".index_showimg_list"); var object1 = $(".index_showimg_list li"); var num1 = 1; var time1 = Math.ceil($(object1).length); var n1 = 0; var index_img_width = object1.width(); var index_img_autowidth = $("body").width(); $(window).resize(function () { index_img_autowidth = $("body").width(); if ($("body").width() > "980") { $(".index_showimg_list_warp").css("width", $("body").width()); $(".index_showimg_warp").css("width", $("body").width()); $(".index_showimg_list > li").css("width", $("body").width()); } if (n1 == 0) { $(".index_showimg_list").css("left", "0"); } else { $(".index_showimg_list").css("left", (-$("body").width()) * n1); } }); $(".index_showimg_page > li").click(function () { if ( n1 != $(this).index()) { if(!$(obj1).is(":animated")){ $(obj1).animate({ left: (-index_img_autowidth) * $(this).index() }, 600); n1 = $(this).index(); $(".index_showimg_page2").hide(); $(".index_showimg_page1").show(); $(".index_showimg_page1").eq($(this).index()).hide(); $(".index_showimg_page2").eq($(this).index()).show(); } } }); var index_head_time; $(".index_showimg_page").hover(function () { $(obj1).stop(true,true); clearInterval(index_head_time); }, function () { index_head_time = setInterval(function () { if (n1 >= time1 - 1) { n1 = 0; } else { n1 = n1 + 1; } $(obj1).stop(true,true); index_head_page_show(n1,time1,obj1,index_img_autowidth); }, 4000); }).trigger("mouseleave"); $(".tl_top img").click(function(){ $("html, body").animate({ scrollTop: 0 }, 300); }); $(window).scroll(function() { var offsetTop = 250 + $(window).scrollTop() + "px"; $(".tl_top").animate({ top: offsetTop }, { duration: 300, queue: false }) }); $(window).resize(function() { var offsetTop = 250 + $(window).scrollTop() + "px"; $(".tl_top").animate({ top: offsetTop }, { duration: 300, queue: false }) }); $(".tl_kf_left").mouseover(function(){ $(".tl_kf_right").show(); $(this).css("width","30px"); }); $(".tl_kf_close").click(function(){ $(".tl_kf_right").hide(); $(this).css("width","23px"); }); $(window).scroll(function() { var offsetTop = 250 + $(window).scrollTop() + "px"; $(".tl_kf_warp").animate({ top: offsetTop }, { duration: 300, queue: false }) }); $(window).resize(function() { var offsetTop = 250 + $(window).scrollTop() + "px"; $(".tl_kf_warp").animate({ top: offsetTop }, { duration: 300, queue: false }) }); var obj2=$(".tl_channel_picshow_mid_list"); var object2=$(".tl_channel_picshow_mid_list li"); var num2= 1; var time2 = Math.ceil($(object2).length); var n2=0; $(object2).clone().appendTo(obj2); $(".tl_channel_picshow_left").click(function(){ if(!$(obj2).is(":animated")){ if(n2==time2){n2=0;$(obj2).css({left:0});}; $(obj2).animate({left: "-="+(object2.width()+3)}, 500); n2++; } }); $(".tl_channel_picshow_right").click(function(){ if(!$(obj2).is(":animated")){ if(n2==0) { n2=time2; $(obj2).css({left:-(object2.width()+3)*time2}) }; $(obj2).animate({left: "+="+(object2.width()+3)}, 500); n2--; } }); $(".tl_channel_picshow").hover(function() { clearInterval(index_time2); }, function() { index_time2 = setInterval(function(){ $(".tl_channel_picshow_left").click(); }, 5000); }).trigger("mouseleave"); }); function index_head_page_show(n1,time1,obj1,index_img_autowidth) { $(".index_showimg_list").animate({ left: (-index_img_autowidth) * n1 }, 600); $(".index_showimg_page2").hide(); $(".index_showimg_page1").show(); $(".index_showimg_page1").eq(n1).hide(); $(".index_showimg_page2").eq(n1).show(); }