Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:230) in /www/wwwroot/www.85520057.com/js.php on line 27
$(function(){ $('.consult_top .consult_ban li').each(function(){//banner球球循环 $('.consult_top .consult_ban .num').append(''); }); $('.consult_box .consult_cont .txt_cont .img_box li').each(function(){//banner球球循环 $('.consult_box .consult_cont .txt_cont .img_box .num').append(''); }); $('.in_top .center .consult_ban li').each(function(){//二级球球循环 $('.in_top .center .consult_ban p.num').append(''); }); $('.top-banner .banner-img li').each(function(){//二级球球循环 $('.top-banner .banner-circle').append('
  • '); }); consult();//资讯页js tab1(); in_ban('.in_top .center .consult_ban','.in_top .center .consult_ban li','.in_top .center .consult_ban p.num span','consult_ban','5');//首页banner in_ban('.top-banner .banner-img','.top-banner .banner-img li','.top-banner .banner-circle li','vip-wrap','5','.top-banner .prevBtn', '.top-banner .nextBtn');//首页banner in_ban('.consult_top .consult_ban','.consult_top .consult_ban li','.consult_top .consult_ban .num span','consult_ban','3');//资讯首页的banner in_ban('.consult_box .consult_cont .txt_cont .img_box','.consult_box .consult_cont .txt_cont .img_box li','.consult_box .consult_cont .txt_cont .img_box .num span','consult_cont','3');//资讯首页的banner member_scroll('.consult_box .consult_cont .txt_cont .img_scroll', '.consult_box .consult_cont .txt_cont .img_scroll .prev', '.consult_box .consult_cont .txt_cont .img_scroll .next', '.consult_box .consult_cont .txt_cont .img_scroll .box', '3', false,123,'consult_box'); message_scroll('.consult_top .center .txt_ad', '.consult_top .center .txt_ad', '3', true,'consult_top'); message_scroll2('.footer .link_cont ','.footer .more_link .prev','.footer .more_link .next','.footer .more_link .link_box',3,false,'footer');//首页最新消息 member_scroll('.in_top .center .img_scroll', '.in_top .center .img_scroll .prev', '.in_top .center .img_scroll .next', '.in_top .center .img_scroll .box', '3', false,136,'in_top'); baojia();//警消服务,产品报价 /*展会专题引用js--------开始*/ tab_img('.firm_project .project_top .left','.firm_project .project_top .left li','.firm_project .project_top .left .num','project_top',3);//展会专题, tab_img('.firm_project .box1 .pic','.pro_pro .tab_pic li','.pro_pro .tab_pic .num','pro_pro',3);//展会专题,展会简介 tab_img('.firm_project .tab_zhan_box2','.firm_project .tab_zhan_box2 .box','.firm_project .tab_zhan_box2 .tab_name','firm_project_box2',4);//展会专题,展会简介 tab('.firm_project .zhan_box2 .tab_name p','.firm_project .zhan_box2 .box');//展会专题, member_scroll('.firm_project .zhan_box1 .tab_name','.firm_project .zhan_box1 .tab_name .prev','.firm_project .zhan_box1 .tab_name .next','.firm_project .zhan_box1 .tab_name .img',3,true,191,'firm_project_box1');//展会专题,媒体报道 message_scroll2('.firm_project .zhan_box3 .tab_name','.firm_project .zhan_box3 .tab_name .prev','.firm_project .zhan_box3 .tab_name .next','.firm_project .zhan_box3 .img',3,false,'firm_project_box3');//展会专题,展厅风采 firm_project(); //展会专题基础JS /*展会专题引用js--------结束*/ replace('.firm_project .tit_box2 a','.firm_project .box3 ul','tit_box2');//此处是换一换特效 /*企业专题引用js--------开始*/ tab('.firm_project .tit_box a','.firm_project .box3 ul');//切换效果, /*企业专题引用js--------结束*/ member_scroll('.pro_infobox .bpl_list .busPicLists', '.bpl_list.pr .prev', ' .bpl_list.pr .next', '.pro_infobox .bpl_list .busPicLists', '3', false,79,'busPicLists'); $('.top_pro .tab_cont ul').each(function(){ $('.top_pro .top .tab_name .tab').append(''); }) special_ban('.consult_top .top_pro','.top_pro .tab_cont ul','.top_pro .top .tab_name .tab span','top_pro','4','.top_pro .top .tab_name .prev','.top_pro .top .tab_name .next'); /*IE8兼容*/ $('.floory3 .center dl:nth-child(3n)').css({'margin-right': '0'}); $('.floor3 .center dl:nth-child(4n)').css({'margin-right': '0'}); $('.er_ad2 a:last-child').css({'margin-right': '0'}); $('.floor8 .center .top dl:nth-child(4n)').css({'margin-right': '0'}); }); function baojia(){ $('.points_left .title').click(function(){//二级页的左侧的下拉 $(this).children('i').toggleClass('kai'); $(this).next('.sm_nav').toggleClass('hide'); }); $('.zsSplit li .tog').click(function(){//二级页的子类的下拉 $(this).parent('li').toggleClass('h'); }); } function tab1(){ $('.in_wrap .floor_box .box').eq(0).show().siblings().hide(); $('.in_title .name a').hover(function(){ doms = $("#id_16").css("display"); if(doms=='none'){ $(".xong_16").css({"margin-left":"22px"}); } doms = $("#id_16").css("display"); if(doms=='block'){ $(".xong_16").css({"margin-left":"22px"}); } $(this).addClass('current').siblings('a').removeClass('current'); var index = $(this).index()-($(this).index()/2); $(this).parents('.in_title').next('.floor_box').find('.box').eq(index).show().siblings('.box').hide() $(this).parents('.in_title').next('.floor_box').find('.img_box').eq(index).show().siblings('.img_box').hide() }); } // // function tab2(){ // $('.in_wrap .floor_boxde .box').show(); // $('.in_title .name a').hover(function(){ // $(this).addClass('current').siblings('a').removeClass('current'); // var index = $(this).index()-($(this).index()/2); // $(this).parents('.in_title').next('.floor_box').find('.box').eq(index).show().siblings('.box').hide() // }); // } function consult(){ var snav_size = $('.consult_top .left .snav li').size(); if(snav_size%2 == 0){ $('.consult_top .left .snav li').eq(snav_size-1).addClass('none'); $('.consult_top .left .snav li').eq(snav_size-2).addClass('none'); }else{ $('.consult_top .left .snav li').eq(snav_size-1).addClass('none'); }; $('.top_shop .search .name a').click(function(){ $(this).addClass('current').siblings('a').removeClass('current'); }); }; function in_ban(wraper,img,num,timename,time,prev,next){//滚动公共ECMAScript var wraper = $(wraper),//最大块 img = $(img),//滚动对象 num = $(num),//球球 timename = timename,//定时器名字 time = time,//时间 size = 0,//数 prev = $(prev), next = $(next); num.eq(0).addClass('current'); img.hide(); img.eq(0).show(); num.hover(function(){ size = $(this).index(); $(this).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }); function nextqq(){ if (size >= img.size() - 1) { size = 0; } else { size++; }; num.eq(size).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }; timename = setInterval(function() { nextqq(); },time*1000); wraper.hover(function(){ clearInterval(timename); },function(){ timename = setInterval(function() { next(); },time*1000); }); }; function special_ban(wraper,img,num,timename,time,prev,next){//滚动公共ECMAScript var wraper = $(wraper),//最大块 img = $(img),//滚动对象 num = $(num),//球球 timename = $(timename),//定时器名字 time = time,//时间 size = 0,//数 prev = $(prev), next = $(next); num.eq(0).addClass('current'); img.hide(); img.eq(0).show(); num.hover(function(){ size = $(this).index(); $(this).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }); prev.click(function(){prev();}); next.click(function(){next();}); function prev(){ if (size <1 ) { size = img.size() - 1; } else { size--; }; num.eq(size).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }; function next(){ if (size >= img.size() - 1) { size = 0; } else { size++; }; num.eq(size).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }; timename = setInterval(function() { next(); },time*1000); wraper.hover(function(){ clearInterval(timename); },function(){ timename = setInterval(function() { next(); },time*1000); }); }; function member_scroll(wraper, prev, next, img, speed, or,scroll_width,timename) { var wraper = $(wraper); var prev = $(prev); var next = $(next); var img = $(img).find('ul'); var w = scroll_width; var s = speed; var ad = timename; next.click(function() { img.animate({ 'margin-left': -w }, function() { img.find('li').eq(0).appendTo(img); img.css({ 'margin-left': 0 }); }); }); prev.click(function() { img.find('li:last').prependTo(img); img.css({ 'margin-left': -w }); img.animate({ 'margin-left': 0 }); }); if (or == true) { ad = setInterval(function() { next.click(); }, s * 1000); wraper.hover(function() { clearInterval(ad); }, function() { ad = setInterval(function() { next.click(); }, s * 1000); }); } }; function message_scroll(wraper, img, speed, or,ad) { var wraper = $(wraper); var img = $(img).find('ul'); var w = img.find('li').outerHeight(true); var s = speed; var ad = ad; if (or == true) { ad = setInterval(function() { img.animate({ 'margin-top': -w }, function() { img.find('li').eq(0).appendTo(img); img.css({ 'margin-top': 0 }); }); }, s * 1000); wraper.hover(function() { clearInterval(ad); }, function() { ad = setInterval(function() { img.animate({ 'margin-top': -w }, function() { img.find('li').eq(0).appendTo(img); img.css({ 'margin-top': 0 }); }); }, s * 1000); }); } }; function message_scroll2(wraper, prev, next, img, speed, or,time_name) { var wraper = $(wraper); var prev = $(prev); var next = $(next); var img = $(img).find('ul'); var w = img.find('li').outerHeight(true); var s = speed; var ad = time_name; next.click(function() { img.animate({ 'margin-top': -w }, function() { img.find('li').eq(0).appendTo(img); img.css({ 'margin-top': 0 }); }); }); prev.click(function() { img.find('li:last').prependTo(img); img.css({ 'margin-top': -w }); img.animate({ 'margin-top': 0 }); }); if (or == true) { ad = setInterval(function() { next.click(); }, s * 1000); wraper.hover(function() { clearInterval(ad); }, function() { ad = setInterval(function() { next.click(); }, s * 1000); }); } }; function tab_img(wraper,img,num,timename,time){//滚动公共ECMAScript var wraper = $(wraper),//最大块 img = $(img),//滚动对象 num = $(num),//球球 timename = $(timename),//定时器名字 time = time,//时间 size = 0;//数 img.each(function(){ num.append(''); }); num = $(num).find('span');//球球 num.eq(0).addClass('current'); img.hide(); img.eq(0).show(); num.hover(function(){ var size = $(this).index(); $(this).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }); timename = setInterval(function() { if (size >= img.size() - 1) { size = 0; num.eq(size).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); } else { size++; num.eq(size).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }; },time*1000); wraper.hover(function(){ clearInterval(timename); },function(){ timename = setInterval(function() { if (size >= img.size() - 1) { size = 0; num.eq(size).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); } else { size++; num.eq(size).addClass('current').siblings('').removeClass('current'); img.eq(size).fadeIn(150).siblings('').fadeOut(150); }; },time*1000); }); }; function tab(name,cont){ var name = $(name);//切换标签 //label 切换的名字的统计标签 var cont = $(cont);//切换内容 name.eq(0).addClass('current'); cont.eq(0).show().siblings().hide(); name.hover(function(){ $(this).addClass('current').siblings().removeClass('current'); var _index = $(this).index(); cont.eq(_index).show().siblings().hide(); }); }; function firm_project(){ $('.firm_project .zhan_box3 .img li').hover(function(){ var _this_src = $(this).find('img').attr('src'); $(this).addClass('current').siblings().removeClass('current'); $('.firm_project .zhan_box3 .pic img').attr('src',_this_src); }); }; function replace(name,cont,size_name){ var name = $(name); var cont = $(cont); var size_name = size_name = 0; var size = cont.size()-1; cont.eq(0).show().siblings().hide(); name.click(function(){ if(size_name>=size){ size_name=0; }else{ size_name++; } cont.eq(size_name).show().siblings().hide(); }); }