//全屏滚动 $(function () { $('#order_nav li').hover(function () { $(this).addclass('on'); }, function () { $(this).removeclass('on'); } ); }); $(function () { var n = 0; var imglength = $(".b-img a").length; var ctwidth = imglength * 100; var itemwidth = 1 / imglength * 100; $(".b-img").width(ctwidth + "%"); $(".b-img a").width(itemwidth + "%"); $(".b-list").width(imglength * 30); if (imglength > 1) { for (var i = 0; i < imglength; i++) { var listspan = $("") $(".b-list").append(listspan); } } $(".b-list span:eq(0)").addclass("spcss").siblings("span").removeclass("spcss"); $(".bar-right em").click(function () { if (n == imglength - 1) { var ctposit = (n + 1) * 100; $(".banner").append($(".b-img").clone()); $(".b-img:last").css("left", "100%"); $(".b-img:first").animate({ "left": "-" + ctposit + "%" }, 1000); $(".b-img:last").animate({ "left": "0" }, 1000); var settime0 = settimeout(function () { $(".banner .b-img:first").remove(); }, 1000); n = 0; $(".b-list span:eq(" + n + ")").addclass("spcss").siblings("span").removeclass("spcss"); } else { n++; ctposit = n * 100; $(".b-img").animate({ "left": "-" + ctposit + "%" }, 1000); $(".b-list span:eq(" + n + ")").addclass("spcss").siblings("span").removeclass("spcss"); } }) $(".bar-left em").click(function () { if (n == 0) { var stposit = imglength * 100; var etposit = (imglength - 1) * 100; $(".banner").prepend($(".b-img").clone()); $(".b-img:first").css("left", "-" + stposit + "%"); $(".b-img:last").animate({ "left": "100%" }, 1000); $(".b-img:first").animate({ "left": "-" + etposit + "%" }, 1000); var settime0 = settimeout(function () { $(".banner .b-img:last").remove(); }, 1000); n = imglength - 1; $(".b-list span:eq(" + n + ")").addclass("spcss").siblings("span").removeclass("spcss"); } else { n--; var ctposit = n * 100; $(".b-img").animate({ "left": "-" + ctposit + "%" }, 1000); $(".b-list span:eq(" + n + ")").addclass("spcss").siblings("span").removeclass("spcss"); } }) $(".b-list span").click(function () { var lsindex = $(this).index(); n = lsindex; var ctposit = n * 100; $(".b-img").animate({ "left": "-" + ctposit + "%" }, 1000); $(this).addclass("spcss").siblings("span").removeclass("spcss"); }) function rollenvent() { if (n == imglength - 1) { var ctposit = (n + 1) * 100; $(".banner").append($(".b-img").clone()); $(".b-img:last").css("left", "100%"); $(".b-img:first").animate({ "left": "-" + ctposit + "%" }, 1000); $(".b-img:last").animate({ "left": "0" }, 1000); var settime0 = settimeout(function () { $(".banner .b-img:first").remove(); }, 1000); n = 0; $(".b-list span:eq(0)").addclass("spcss").siblings("span").removeclass("spcss"); } else { n++; ctposit = n * 100; $(".b-img").animate({ "left": "-" + ctposit + "%" }, 1000); $(".b-list span:eq(" + n + ")").addclass("spcss").siblings("span").removeclass("spcss"); } } var slidesetinterval = setinterval(rollenvent, 4000); $(".banner").hover(function () { clearinterval(slidesetinterval); }, function () { slidesetinterval = setinterval(rollenvent, 4000); }); $(".bar-left").mouseover(function () { $(this).css("background", "url(images/arr-bg.png)"); $(this).find("em").addclass("emcss"); }).mouseleave(function () { $(this).css("background", "none"); $(this).find("em").removeclass("emcss"); }) $(".bar-right").mouseover(function () { $(this).css("background", "url(images/arr-bg.png)"); $(this).find("em").addclass("emcss"); }).mouseleave(function () { $(this).css("background", "none"); $(this).find("em").removeclass("emcss"); }) }) $(function () { $(window).scroll(function () { $(".intromain").each(function () { var h = $(this).offset().top - 500; if ($(window).scrolltop() > h) { $(this).addclass("intro-animation"); }; }); var a = $(".systeminfo").offset().top - 500; if ($(window).scrolltop() > a) { $(".systeminfo ul").addclass("systemul"); }; }); }); $(function () { $(".indexmain3 .left li:eq(0)").addclass("lifrist") }); function autoscroll(obj) { var h = $("#qianyuetop li").height() $(obj).find("ul").animate({ margintop: "-" + h + "px" }, 500, function () { $(this).css({ margintop: "0px" }).find("li:first").appendto(this); }); }; $(function () { setinterval('autoscroll("#qianyuetop")', 2000); }); $(function () { $("#menu dt").click(function () { var index = $(this).index(); $(this).addclass("curr").siblings().removeclass("curr"); $(".gongneng .mainbox").eq(index).show().siblings().hide(); }); }); $(function () { // 悬浮窗口 $(".yb_conct").hover(function () { $(".yb_conct").css("right", "5px"); $(".yb_bar .yb_ercode").css('height', '200px'); }, function () { $(".yb_conct").css("right", "-127px"); $(".yb_bar .yb_ercode").css('height', '53px'); }); // 返回顶部 $(".yb_top").click(function () { $("html,body").animate({ 'scrolltop': '0px' }, 300) }); }); $(function () { //var a = $(".indexmain2").offset().top //$(window).scroll(function () { // if ($(window).scrolltop() > a - 250) { // $(".indexmain2 ul:eq(0) li").fadein(600) // $(".indexmain2 ul:eq(0) li").addclass("myindexli") // } // if ($(window).scrolltop() > a + 355) { // $(".indexmain2 ul:eq(1) li").fadein(600) // $(".indexmain2 ul:eq(1) li").addclass("myindexli") // } // if ($(window).scrolltop() > a + 760) { // $(".indexmain2 ul:eq(2) li").fadein(600) // $(".indexmain2 ul:eq(2) li").addclass("myindexli") // } // if ($(window).scrolltop() > a + 1265) { // $(".indexmain2 ul:eq(3) li").fadein(600) // $(".indexmain2 ul:eq(3) li").addclass("myindexli") // } // if ($(window).scrolltop() > a + 1620) { // $(".indexmain2 ul:eq(4) li").fadein(600) // $(".indexmain2 ul:eq(4) li").addclass("myindexli") // } //}); });