$(function(){ $(".head-nav ul li").hover(function(){ $(this).children(".nav_down").stop(true,true).show(); },function(){ $(this).children(".nav_down").stop(true,true).hide(); }) }) $(function(){ $(".head-nav ul li .zfl").hover(function(){ $(this).find("div").stop(true,true).show(); },function(){ $(this).find("div").stop(true,true).hide(); }) }) $(".home_news_nei .new1").eq(0).addClass("nc_moren") /*$(function(){ $(".head-nav .menu_pro_h").hover(function(){ $(".dhbj").stop(true,true).fadeIn(); $(this).children(".nav_down").stop(true,true).slideDown(500); },function(){ $(".dhbj").stop(true,true).fadeOut(0); $(this).children(".nav_down").stop(true,true).slideUp(0); }) }) */ $(document).ready(function() { $(".toptel a").click(function() { $(".telbox").toggle(300); }) }); $(document).ready(function() { $(".topsearch a").click(function() { $(".searmain").toggle(300); }) }); $(document).ready(function() { /*移动端导航*/ $('#phoneNav').mmenu({ extensions : [ 'pageshadow','effect-listitems-slide','pagedim-black' ], offCanvas : { zposition : "front", position : "right" }, counters : false, navbar : false, navbars : [ { position : 'top', content : [ 'prev', 'close' ] } ] }); /*移动和pc端的hover处理,判断为移动设备时执行*/ var system = { win: false, mac: false, xll: false }; //检测平台 var p = navigator.platform; system.win = p.indexOf("Win") == 0; system.mac = p.indexOf("Mac") == 0; system.x11 = (p == "X11") || (p.indexOf("Linux") == 0); if (system.win || system.mac || system.xll) { } else { // $("*").unbind(mouseenter).unbind(mouseleave); // document.body.unbind("touchmove"); // document.body.removeEventListener('touchmove', function (event) { // // },false); // document.body.removeEventListener('touchmove', function(){ }); } /*placeholder*/ $(function(){ $('input, textarea').placeholder(); }); }); var kd = $(document.body).outerWidth(true) $(".head-nav li #menu_pro").width(kd) /*$(window).resize(function () {   location.reload(); })*/ $(".new1").hover(function(){ $(this).stop(true).animate({width:'740px'},500).siblings().stop(true).animate({width:'252px'},500); }) var n=9; $(".history li").eq(n).nextAll().hide() $(".history .more").click(function(){ $(".history li").eq(n).nextAll().slideToggle(); $(".history li").eq(n).nextAll().css({"overflow":"visible"}) }); $(function(){ //产品选项卡 $(".procate li:last").addClass("sel"); $(".proshow .product2-p:last").show(); $(".procate ul li").hover(function(){ $(this).addClass("sel").siblings().removeClass("sel"); var _this = $(".procate ul li").index(this); $(".proshow .product2-p").eq(_this).show().siblings().hide(); }); }) $(function(){ $(".pro-title li").eq(0).addClass("sel"); $(".pro-bottom .pro-neirong").eq(0).show(); $(".pro-title ul li").hover(function(){ $(this).addClass("sel").siblings().removeClass("sel"); var _this = $(".pro-title ul li").index(this); $(".pro-bottom .pro-neirong").eq(_this).show().siblings().hide(); }); })