"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(); // }); //首页滚动 (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); //大图轮播 // speed: 500, // 滚动速度 // delay: 3000, // 动画延迟 // complete: function() {}, // 动画完成的回调函数 // keys: true, // 启动键盘导航 // dots: true, // 显示点导航 // fluid: false // 支持响应式设计 (function($) { $('#kinslideshow').unslider({ dots: true, delay: 5000, fluid: true }); })(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进行添加"); } } } //$(function() { // if($("#pjax").length>0){ // var scrolltop = $("#pjax").offset().top; // $("body,html").animate({scrolltop:scrolltop},700); // }else{ // return false; // } //});