//手机导航条 $(window).load(function () { $('.btn-nav').on('click tap', function () { $('.jlnavr').toggleClass('showNav hideNav').removeClass('hidden'); $(this).toggleClass('animated'); }); }); //$(".jh10").each(function () { //$(this).html(""); //}); document.write ('
注册免费发布登录
'); /*------所有滚动、幻灯片 S-----------*/ jQuery("#nav").slide({ type: "menu", titCell: ".mainCate", targetCell: ".subCate", delayTime: 0, triggerTime: 0, defaultPlay: false, returnDefault: true }); jQuery(".slideBox").slide({ mainCell: ".bd ul", autoPlay: true }); jQuery(".slideTxtBox").slide(); jQuery(".slideTxtBoxzd").slide(); jQuery("#leftnav").slide({ type: "menu", titCell: ".mainCate", targetCell: ".subCate", delayTime: 0, triggerTime: 0, defaultPlay: false, returnDefault: true }); //视频滚动 jQuery(".picScroll-left").slide({ titCell: ".hd ul", mainCell: ".bd ul", autoPage: true, effect: "left", autoPlay: true, vis: 5, trigger: "click" }); jQuery(".jlexhibition").slide({mainCell:".bd ul",autoPage:true,effect:"top",autoPlay:true,vis:3}); jQuery("#tabRank01 li").hover(function () { jQuery(this).addClass("on").siblings().removeClass("on") }, function () { }); jQuery("#tabRank02 li").hover(function () { jQuery(this).addClass("on").siblings().removeClass("on") }, function () { }); jQuery("#tabRank03 li").hover(function () { jQuery(this).addClass("on").siblings().removeClass("on") }, function () { }); /*------所有滚动、幻灯片 E-----------*/ /*------JQ Ready事件 S-----------*/ $(function () { //在可视区域外预加载100像素区域的图片 $("img").lazyload({ threshold: 100 }); /*------搜索 S-----------*/ $("#pt1").mouseover(function () { $("#pt2").show(); }); $("#pt1").mouseleave(function () { $("#pt2").hide(); }); $("#pt2 a").click(function () { var newType = $(this).html(); var oldType = $("#s0").html(); $(this).html(oldType); $("#s0").html(newType); switch (newType) { case "企业": $("#hidtype").val("5"); break; case "产品": $("#hidtype").val("6"); break; } }); $("#btnSearch").click(function () { var searchinfo = $("#keywords").val().toString(); var searchtype = $("#hidtype").val().toString(); // alert(searchtype); if (searchinfo.indexOf("请输入") > -1) { alert("请输入正确的关键词"); return false; } if (searchinfo.length > 10) { alert("关键词长度不能超过10个字符"); return false; } if (searchinfo.length < 2) { alert("关键词长度不能少于2个字符"); return false; } //alert("aa"); window.location.href = "/qianzhou/so/?key=" + searchinfo + "&type=" + searchtype; }); /*------搜索 E-----------*/ /*------广告位鼠标划过滚动S-----------*/ $(".tbtjr li").mouseover(function () { $(this).find("img").stop().animate({ "margin-left": "-199px" }) }) $(".tbtjr li").mouseout(function () { $(this).find("img").stop().animate({ "margin-left": "0px" }) }); $(".flad1b li").mouseover(function () { $(this).find("img").stop().animate({ "margin-left": "-199px" }) }) $(".flad1b li").mouseout(function () { $(this).find("img").stop().animate({ "margin-left": "0px" }) }); $(".tbtjl div").mouseover(function () { $(this).find("img").stop().animate({ "margin-left": "-199px" }) }) $(".tbtjl div").mouseout(function () { $(this).find("img").stop().animate({ "margin-left": "0px" }) }); $(".jlad1xx li").mouseover(function () { $(this).find("img").stop().animate({ "margin-left": "-199px" }) }) $(".jlad1xx li").mouseout(function () { $(this).find("img").stop().animate({ "margin-left": "0px" }) }); $("#taidu #taiduad").mouseover(function () { $(this).find("img").stop().animate({ "margin-left": "-398px" }) }) $("#taidu #taiduad").mouseout(function () { $(this).find("img").stop().animate({ "margin-left": "0px" }) }); /*------广告位鼠标划过滚动S-----------*/ }); /*------JQ Ready事件 E-----------*/ //读取cookies function getCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (arr = document.cookie.match(reg)) return unescape(arr[2]); else return null; } /*鼠标滑过弹出二维码*/ function showElement(elementId) { document.getElementById(elementId).style.display = "block"; } function hideElement(elementId) { document.getElementById(elementId).style.display = "none"; }