//导航 鼠标处于上方效果 function navitemhover(obj) { if (!$(obj).hasclass('c')) { $(obj).removeclass("l"); $(obj).addclass("h"); } if ($(obj).attr('id')=='navitem_2') { goodsnavdivrowshow(); $('#productnav').val(1); } } //导航 鼠标离开上方效果 function navitemleave() { $("#navdiv").children(".fl").each(function(i, btn){ if (!$(this).hasclass('c')) { $(this).addclass("l"); $(this).removeclass("h"); } }); $('#productnav').val(0); settimeout('goodsnavdivrowhidecheck();',100); } //导航 选中某一个 function navitemselect(num) { $("#navitem_"+num).removeclass("l"); $("#navitem_"+num).removeclass("h"); $("#navitem_"+num).addclass("c"); } //关于我们子导航 选中某一个 function aboutnavitemselect(num) { $("#aboutnavitem_"+num).addclass("c"); } //产品行显示 function goodsnavdivrowshow() { $("#goodsnavdivrowspace").removeclass("goodsnavdivrowhide"); $('#goodsnavdivrowspace').addclass("goodsnavdivrowshow"); } //产品行隐藏 function goodsnavdivrowhide() { $("#goodsnavdivrowspace").removeclass("goodsnavdivrowshow"); $('#goodsnavdivrowspace').addclass("goodsnavdivrowhide"); $('#productnav').val(0); $('#productrow').val(0); } //产品行隐藏判断 function goodsnavdivrowhidecheck() { if ($('#productnav').val()!=1 && $('#productrow').val()!=1) { goodsnavdivrowhide(); } } //产品行 鼠标处于上方 function goodsnavdivrowhover() { $('#productrow').val(1); } //产品行 鼠标离开上方 function goodsnavdivrowleave() { $('#productrow').val(0); settimeout('goodsnavdivrowhidecheck();',100); } //产品名称行效果 function checkgoodsnamerowtotop() { var fold = $("#goodsnamedivrow").height() + $("#goodsnamedivrow").offset().top; if( fold < $(this).scrolltop()){ if($("#istop").val() == 0){ if (!$("#goodsnamedivrow_fixedtop").hasclass('goodsnamedivrow_show')) { $("#goodsnamedivrow_fixedtop").removeclass("goodsnamedivrow_hide"); $("#goodsnamedivrow_fixedtop").addclass("goodsnamedivrow_show"); } $("#istop").val(1); } }else{ if($("#istop").val() == 1){ if (!$("#goodsnamedivrow_fixedtop").hasclass('goodsnamedivrow_hide')) { $("#goodsnamedivrow_fixedtop").removeclass("goodsnamedivrow_show"); $("#goodsnamedivrow_fixedtop").addclass("goodsnamedivrow_hide"); } $("#istop").val(0); } } } /** 2019-6-20 wwf 加入我们(人力资源) */ function getqueryvariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i