$(".h_nav ul li:last").addClass("nobot"); $(".banner").slide({ titOnClassName: "cur", autoPlay: true, }); triggerTime: 4000; effect: "fold"; titCell: ".hd li"; trigger: 'click'; var totel = $(".banner .bd").find("li").size(); function searchInfo() { var key = document.getElementById("key").value; var base = $('head').data('base'); if (key) { location.href = base + "search.php?key=" + key; } else { alert('请输入关键字...!'); } } $(function () { $(".hz").slide({ mainCell: "ul", effect: "leftLoop", autoPlay: true, vis: 4, scroll: 1, prevCell: ".z", nextCell: ".y" }); }); $(function () { var carousel = $("#carousel").waterwheelCarousel({ flankingItems: 2, movedToCenter: function ($item) { $('#carousel .titlework').css({ 'opacity': '0', 'z-index': '8' }); $('.' + $item.attr('t')).css({ 'z-index': '99999' }).stop().animate({ 'opacity': '1' }, 500); }, movingFromCenter: function ($item) { $('.' + $item.attr('t')).css({ 'z-index': '8', 'opacity': '0' }); }, clickedCenter: function ($item) { } }); $('#prev').bind('click', function () { carousel.prev(); return false }); $('#next').bind('click', function () { carousel.next(); return false; }); $('#carousel .titlework').css({ 'opacity': '0', 'z-index': '8' }); $('#carousel span:first').css({ 'opacity': '1', 'z-index': '99999' }); setTimeout(function () { $("#carousel div a").unbind(); }, 1000); }); $(".fen_c").find("ul:eq(0)").show(); $(".fen_c").find("ul:eq(1)").show(); $(".fen_c").find("h4:eq(0)").addClass("nones0"); $(".fen_c").find("h4:eq(1)").addClass("nones0"); $(".fen_c h4").mouseover(function () { $(this).next("ul").show().siblings("ul").hide();; }); $(".clist").find("li:eq(2)").addClass("nones"); $(".clist").find("li:eq(5)").addClass("nones"); var QQ = "375350617"; $(function () { $(".case").slide({ mainCell: ".case_con", effect: "leftLoop", autoPlay: true, vis: 3, scroll: 1, prevCell: ".z01", nextCell: ".y01" }); }); $(function () { var carousel = $("#carousel").waterwheelCarousel({ flankingItems: 2, movingToCenter: function ($item) { }, movedToCenter: function ($item) { $('.titlework').css({ 'opacity': '0', 'z-index': '8' }); $('.' + $item.attr('t')).css({ 'z-index': '99999' }).stop().animate({ 'opacity': '1' }, 500); $('.' + $item.attr('h')).addClass("cur"); }, movingFromCenter: function ($item) { $('.' + $item.attr('t')).css({ 'z-index': '8', 'opacity': '0' }); $('.' + $item.attr('h')).removeClass("cur"); }, movedFromCenter: function ($item) { $('.' + $item.attr('t')).css({ 'z-index': '8', 'opacity': '0' }); $('.' + $item.attr('h')).removeClass("cur"); }, clickedCenter: function ($item) { } }); $('#prev').bind('click', function () { carousel.prev(); return false }); $('#next').bind('click', function () { carousel.next(); return false; }); $('#reload').bind('click', function () { newOptions = eval("(" + $('#newoptions').val() + ")"); carousel.reload(newOptions); return false; }); $('.titlework:first').css({ 'opacity': '1', 'z-index': '99999' }); $('.bottom_roll:first').addClass("cur"); setTimeout(function () { $("a.atitlesc").unbind(); }, 400); }); $(".news1").find("div.news_c:first").siblings("div.news_c").hide(); $(".n_nav ul li").mouseover(function () { var _index = $(this).addClass("cur").siblings("li").removeClass("cur").parent("ul").children("li").index(this); $(".news1 div.news_c").eq(_index).show().siblings("div.news_c").hide(); var _url = $(this).find("a").attr("href"); $("a.kkk").attr("href", _url); }); $(function () { $(".xc").slide({ mainCell: "ul", effect: "leftLoop", autoPlay: true, vis: 4, scroll: 1, prevCell: ".z02", nextCell: ".y02" }); }); $(function () { var a = location.href; var b = 0; var c = $(".g_nav ul li").length; $(".g_nav ul li").each(function (e) { var d = $(this).find("a").attr("href"); if (d.length > 5 && a.substring(a.length - d.length).toUpperCase() == d.toUpperCase()) { $(this).addClass("cur"); $(this).siblings("li").removeClass("cur"); return; } b++; }); if (b == c) { $(".g_nav ul li:eq(0)").addClass("cur"); $(".g_nav ul li:eq(0)").siblings("li").removeClass("cur"); } }); $(function() { var time; //var winHeight = top.window.document.body.clientHeight || $(window.parent).height(); $('.client-2').css({ 'marginTop': -($('.client-2').height() / 2) }); $('#client-2 li').on({ 'mouseenter': function() { var scope=this; time = setTimeout(function() { var divDom = $(scope).children('div'); var maxWidth = divDom.width(); $(scope).stop().animate({ left: 77-maxWidth }, 'normal', function() { var pic = $(scope).find('.my-kefu-weixin-pic'); if (pic.length > 0) { pic.show(); } }); }, 100) }, 'mouseleave': function() { var pic = $(this).find('.my-kefu-weixin-pic'); var divDom = $(this).children('div'); var maxWidth = divDom.width(); if (pic.length > 0) { pic.hide(); } clearTimeout(time); var divDom = $(this).children('div'); $(this).stop().animate({ left: 0 }, "normal", function() {}); } }); //返回顶部 $(window).scroll(function() { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; var eltop = $("#client-2").find(".my-kefu-ftop"); if (scrollTop > 0) { eltop.show(); } else { eltop.hide(); } }); $("#client-2").find(".my-kefu-ftop").click(function() { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; if (scrollTop > 0) { $("html,body").animate({ scrollTop: 0 }, "slow"); } }); });