$(function(){ //nav jQuery("#nav").slide({ type: "menu", titCell: ".nLi", targetCell: ".sub", effect: "slideDown", delayTime: 300, triggerTime: 0, returnDefault: true }); //banner jQuery(".slideBox").slide({ mainCell: ".bd ul", autoPlay: true }); //焦点图切换 jQuery(".Focus").slide({ mainCell: ".bd ul", effect:"leftLoop", autoPlay: true }); jQuery(".wonder").slide({ titCell: ".hd ul", mainCell: ".bd ul", autoPage: true, effect: "leftLoop", autoPlay: true, vis: 2 }); jQuery(".earchR").slide({ titCell: ".hd ul", mainCell: ".bd ul", autoPage: true, effect: "leftLoop", autoPlay: true, vis: 4 }); // tongzhi jQuery(".txtScroll-top").slide({ titCell:".hd ul", mainCell:".bd ul", autoPage:true, effect:"top", autoPlay:true, vis:1 }); $('.list_r dl dd:nth-child(4n)').css({ "float":"right", "margin-right":"0" }) }); //搜索框1111111111111111111111111 function test1() { var tempStr=document.getElementById('test').value; if(tempStr=="站内搜索") { document.getElementById('test').value=""; } } function test2() { var tempStr=document.getElementById('test').value; if(tempStr=="") { document.getElementById('test').value="站内搜索"; } } //图片列表 $(function(){ $(".imgList li").hover(function(){ $(this).children(".imgTxt").animate({"bottom":"50%","opacity":"1"},300); },function(){ $(this).children(".imgTxt").animate({"bottom":"0","opacity":"0"},300); }); }); //友情链接 $(function(){ $(".select").each(function(){ var s=$(this); var z=parseInt(s.css("z-index")); var dt=$(this).children("dt"); var dd=$(this).children("dd"); var _show=function(){dd.slideDown(200);dt.addClass("cur set");s.css("z-index",z+1);}; //展开效果 var _hide=function(){dd.slideUp(200);dt.removeClass("cur set");s.css("z-index",z);}; //关闭效果 dt.click(function(){dd.is(":hidden")?_show():_hide();}); dd.find("a").click(function(){dt.html($(this).html());_hide();}); //选择效果(如需要传值,可自定义参数,在此处返回对应的“value”值 ) $("body").click(function(i){ !$(i.target).parents(".select").first().is(s) ? _hide():"";}); }) }); //伪类选择器 $(function(){ $(".infoList li:nth-child(3)").css({'border-bottom': 'none'}); });