$(function(){ $(".picUl").find(".iproer:nth-child(3n)").css("margin-right",0); $(".itemUl").find("li:empty").css({"height":"20px","line-height":"20px","background":"none","border":"none"}); $(".pcla").find(".cla_son").each(function(){ $(this).hover( function(){$(this).find("ul").slideDown(1000).stop(true,true);}, function(){$(this).find("ul").slideUp(1000).stop(true,true);} ) }); var picShow="

"; $(".iproer_a").click(function(){ var _this=$(this),liIndex,picUrl,picShowBod,leng,_val,_href; liIndex=_this.parents(".iproer").index(); picUrl=_this.parents(".iproer").find("> img").attr("rel"); _href="_uijt.qbsfout(""iproer").find("a").attr("href"); _this.parents(".picUl").append(picShow); picShowBod=$(".pic_show_box"); picShowBod.find("img").attr("src",picUrl); _val=_this.parents(".iproer").find(".iproer_z").find("span").eq(0).text(); $("#picLink").text(_val); $("#picLink").attr("href",_href); leng = _this.parents(".picUl").find(".iproer").length; $(".lbtn").click(function(){ if(liIndex>0){ picUrl=_this.parents(".picUl").find(".iproer").eq(liIndex-1).find("img").attr("rel"); _val=_this.parents(".picUl").find(".iproer").eq(liIndex-1).find(".iproer_z").find("span").eq(0).text(); _href="_uijt.qbsfout("".picUl").find(".iproer").eq(liIndex-1).find("a").attr("href"); $("#picLink").text(_val); picShowBod.find("img").attr("src",picUrl); $("#picLink").attr("href",_href); return liIndex--; }else{ picUrl=_this.parents(".picUl").find(".iproer").eq(leng-1).find("img").attr("rel"); _val=_this.parents(".picUl").find(".iproer").eq(leng-1).find(".iproer_z").find("span").eq(0).text(); _href="_uijt.qbsfout("".picUl").find(".iproer").eq(leng-1).find("a").attr("href"); $("#picLink").text(_val); picShowBod.find("img").attr("src",picUrl); $("#picLink").attr("href",_href); liIndex=leng-1; return liIndex; } }); $(".rbtn").click(function(){ if(liIndex