$(document).ready(function(){ //ie判断 if ( $.browser.msie){ if(parseInt( $.browser.version )<=8){ $("body").prepend("
关闭本站不支持您的浏览器,为获得最佳视觉传达效果,请将360、sogou等浏览器切换至急速模式,或升级您的浏览器至 更高的版本
"); $(".ie6 span").click(function(){$(".ie6").slideUp()}); }}; //首页幻灯 $(".banner").slide({mainCell:".bd ul",autoPlay:true,interTime:4000,effect:"leftLoop"}); $(".banner").hover(function(){ $(".prev").css("display","block"); $(".next").css("display","block"); },function(){ $(".prev").css("display","none"); $(".next").css("display","none"); }) //导航 $("#nav").slide({ type:"menu", titCell:".navli", targetCell:".navsub",effect:"slideDown",delayTime:300,triggerTime:0,defaultPlay:false,returnDefault:true}); $("#nav .navli").first().children("ul").remove(); //列表页下拉 $(".ksxl").hover(function(){ $(".ksxl .ksejdh").show(); },function(){ $(".ksxl .ksejdh").hide(); }); //日期 function updateTime() { var date = new Date(); this.year = date.getFullYear(); this.month = date.getMonth() + 1; this.date = date.getDate(); this.day = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")[date.getDay()]; var currentTime = "今天是:"+this.year + "年" + this.month + "月" + this.date + "日" +" " +this.day; $(".time").html(currentTime); } //setInterval(updateTime, 1000); updateTime(); })