// javascript document "use strict;" $(document).ready(function(e) { //二级 $("#nav-1").find(".dropdown").hover(function(){ var $this=$(this); $this.find(">.dropdown-menu").slidedown(100,function(){ var $this=$(this); $this.css({"overflow":"visible"}); $this.find('>li').css({"overflow":"visible"}); $this.find('.nav-div').css({"height":$this.height()+"px"}) }); },function(){ var $this=$(this); $this.find(">.dropdown-menu").stop().slideup(); }); // $("#nav-1").find('.nav-li').hover(function(){ // var $this=$(this); // $this.find(">.nav-div").slidedown(); // },function(){ // var $this=$(this); // $this.find(">.nav-div").stop().slideup(); // }); //$("#s-nav").find("a[href=]") //首页滚动 (function($) { //$("#area2 ul,#area3 ul").simplyscroll({speed:1,framerate:24,direction:"forwards"}); //$('').kxbdsupermarquee({time:1}); $('.demo-f').kxbdsupermarquee({ distance:1, time:(24/1000), isequal:false, btngo:{left:'#gol',right:'#gor'}, direction:'left' }); })(jquery); //大图轮播 (function($) { var $kin=$("#kinslideshow"); $kin.unslider({ dots: true, speed: 500, delay: 3000 }); var k_height=$kin.height(),_il=$kin.find("img").length,_i=0; $kin.find("img").on("load",function(){ _i++; if(_i==_il){ } }) })(jquery); }) //设为首页 function sethome(obj,url){ try{ obj.style.behavior='url(#default#homepage)'; obj.sethomepage(url); }catch(e){ if(window.netscape){ try{ netscape.security.privilegemanager.enableprivilege("universalxpconnect"); }catch(e){ alert("抱歉,此操作被浏览器拒绝!\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'"); } }else{ alert("抱歉,您所使用的浏览器无法完成此操作。\n\n您需要手动将【"+url+"】设置为首页。"); } } } //收藏本站 function addfavorite(title, url) { try { window.external.addfavorite(url, title); } catch (e) { try { window.sidebar.addpanel(title, url, ""); } catch (e) { alert("抱歉,您所使用的浏览器无法完成此操作。\n\n加入收藏失败,请使用ctrl+d进行添加"); } } }