// javascript document // 导航 $(document).ready(function(e) { $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); $(".top-nav-1").mouseover(function(){ $(".header-listbox-1").show(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-2").mouseover(function(){ $(".header-listbox-2").show(); $(".header-listbox-1").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-3").mouseover(function(){ $(".header-listbox-3").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-4").mouseover(function(){ $(".header-listbox-4").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-5").mouseover(function(){ $(".header-listbox-5").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-6").mouseover(function(){ $(".header-listbox-6").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-7").mouseover(function(){ $(".header-listbox-7").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-8").mouseover(function(){ $(".header-listbox-8").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-9").mouseover(function(){ $(".header-listbox-9").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-10").hide(); }); $(".top-nav-10").mouseover(function(){ $(".header-listbox-10").show(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-4").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); }); $(".top-nav-0").mouseover(function(){ $(".header-listbox-4").hide(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-1").mouseleave(function(){ $(".header-listbox-1").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-2").mouseleave(function(){ $(".header-listbox-2").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-3").mouseleave(function(){ $(".header-listbox-3").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-4").mouseleave(function(){ $(".header-listbox-4").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-5").mouseleave(function(){ $(".header-listbox-5").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-6").mouseleave(function(){ $(".header-listbox-6").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-7").mouseleave(function(){ $(".header-listbox-7").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-8").mouseleave(function(){ $(".header-listbox-8").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-9").mouseleave(function(){ $(".header-listbox-9").hide(); }); }); $(document).ready(function(e) { $(".header-listbox-10").mouseleave(function(){ $(".header-listbox-10").hide(); }); }); $(document).ready(function(e) { $("#nav-hide-01").mouseover(function(){ $(".header-listbox-4").hide(); $(".header-listbox-1").hide(); $(".header-listbox-2").hide(); $(".header-listbox-3").hide(); $(".header-listbox-5").hide(); $(".header-listbox-6").hide(); $(".header-listbox-7").hide(); $(".header-listbox-8").hide(); $(".header-listbox-9").hide(); $(".header-listbox-10").hide(); }); }); // 文字滚动 var x = 0; $(document).ready(function(e) { function scroll() {} scroll.prototype.upscroll = function(dom, _h, interval) { var dom = document.getelementbyid(dom); var timer = settimeout(function() { var _field = dom.firstelementchild; _field.style.margintop = _h; cleartimeout(timer); }, 1000) setinterval(function() { if ( x === 0 ){ var _field = dom.firstelementchild; _field.style.margintop = "0px"; dom.appendchild(_field); var _field = dom.firstelementchild _field.style.margintop = _h; } }, interval) } var myscroll = new scroll(); /*这是启动方式*/ /* * demo 父容器(ul)的id * -36px 子元素li的高度 * 3000 滚动间隔时间 * 每次滚动持续时间可到css文件中修改 */ myscroll.upscroll('demo', "-46px", 3000); $('#demo').hover(function(){x=1},function(){x=0}); }); $(document).ready(function(e) { $(".whjs-btn1").mouseover(function(){ $(".whjs-cot1").show(); $(".whjs-cot2").hide(); $(".whjs-cot3").hide(); $(".whjs-btn1").css({"background-color":"#fff",}); $(".whjs-btn1 a").css({"color":"#a41b2f","border-bottom":"solid 4px #a41b2f",}); $(".whjs-btn2").css({"background-color":"#fff",}); $(".whjs-btn2 a").css({"color":"#a41b2f","border-bottom":"none",}); $(".whjs-btn3").css({"background-color":"#ffff",}); $(".whjs-btn3 a").css({"color":"#a41b2f","border-bottom":"none",}); }); $(".whjs-btn2").mouseover(function(){ $(".whjs-cot1").hide(); $(".whjs-cot2").show(); $(".whjs-cot3").hide(); $(".whjs-btn2").css({"background-color":"#fff",}); $(".whjs-btn2 a").css({"color":"#a41b2f","border-bottom":"solid 4px #a41b2f",}); $(".whjs-btn1").css({"background-color":"#fff",}); $(".whjs-btn1 a").css({"color":"#a41b2f","border-bottom":"none",}); $(".whjs-btn3").css({"background-color":"#fff",}); $(".whjs-btn3 a").css({"color":"#a41b2f","border-bottom":"none",}); }); $(".whjs-btn3").mouseover(function(){ $(".whjs-cot1").hide(); $(".whjs-cot2").hide(); $(".whjs-cot3").show(); $(".whjs-btn3").css({"background-color":"#fff",}); $(".whjs-btn3 a").css({"color":"#a41b2f","border-bottom":"solid 4px #a41b2f",}); $(".whjs-btn1").css({"background-color":"#fff",}); $(".whjs-btn1 a").css({"color":"#a41b2f","border-bottom":"none",}); $(".whjs-btn2").css({"background-color":"#fff",}); $(".whjs-btn2 a").css({"color":"#a41b2f","border-bottom":"none",}); }); }); $(document).ready(function(e) { $(".jxzc-btn1").mouseover(function(){ $(".jxzc-cot1").show(); $(".jxzc-cot2").hide(); $(".jxzc-cot3").hide(); $(".jxzc-btn1").css({"background-color":"#fff",}); $(".jxzc-btn1 a").css({"color":"#a41b2f","border-bottom":"solid 4px #a41b2f",}); $(".jxzc-btn2").css({"background-color":"#fff",}); $(".jxzc-btn2 a").css({"color":"#a41b2f","border-bottom":"none",}); $(".jxzc-btn3").css({"background-color":"#ffff",}); $(".jxzc-btn3 a").css({"color":"#a41b2f","border-bottom":"none",}); }); $(".jxzc-btn2").mouseover(function(){ $(".jxzc-cot1").hide(); $(".jxzc-cot2").show(); $(".jxzc-cot3").hide(); $(".jxzc-btn2").css({"background-color":"#fff",}); $(".jxzc-btn2 a").css({"color":"#a41b2f","border-bottom":"solid 4px #a41b2f",}); $(".jxzc-btn1").css({"background-color":"#fff",}); $(".jxzc-btn1 a").css({"color":"#a41b2f","border-bottom":"none",}); $(".jxzc-btn3").css({"background-color":"#fff",}); $(".jxzc-btn3 a").css({"color":"#a41b2f","border-bottom":"none",}); }); $(".jxzc-btn3").mouseover(function(){ $(".jxzc-cot1").hide(); $(".jxzc-cot2").hide(); $(".jxzc-cot3").show(); $(".jxzc-btn3").css({"background-color":"#fff",}); $(".jxzc-btn3 a").css({"color":"#a41b2f","border-bottom":"solid 4px #a41b2f",}); $(".jxzc-btn1").css({"background-color":"#fff",}); $(".jxzc-btn1 a").css({"color":"#a41b2f","border-bottom":"none",}); $(".jxzc-btn2").css({"background-color":"#fff",}); $(".jxzc-btn2 a").css({"color":"#a41b2f","border-bottom":"none",}); }); });