日期:2014-05-16 浏览次数:20693 次
$(function(){var c,a=0,b={$LOAD:$("#load"),pagesum:100,n1:"\u4f24\u611f",n2:"\u8d85\u62fd",n3:"\u641e\u7b11",n4:"\u5e78\u798f",n5:"\u60c5\u4fa3",n6:"\u54f2\u7406",n7:"\u7ecf\u5178",n8:"\u975e\u4e3b\u6d41",n9:"\u82f1\u6587",n10:"\u7e41\u4f53\u5b57",n11:"\u7231\u60c5",n12:"\u597d\u542c",showLoad:function(d,a){b.$LOAD.text(d).css("display","block");a&&setTimeout(function(){b.$LOAD.fadeOut("fast")},a)},copy:function(d,a){window.clipboardData?(a.select(),window.clipboardData.setData("Text",d),b.showLoad("\u590d\u5236\u6210\u529f\uff01\u6309 Ctrl+V \u7c98\u8d34", 1500)):(a.select(),b.showLoad("\u8bf7\u6309 Ctrl+C \u590d\u5236\uff0cCtrl+V \u7c98\u8d34\u3002",2E3))},getQueryStr:function(a){if(a=RegExp("(^|)"+a+"=([^&]*)(&|$)","gi").exec(String(window.document.location.href)))return a[2];return""},getData:function(a,b){c=a;var e="partial/fenlei/"+a+"_"+b+".html?t="+(new Date).getTime();$("#page2 #c_q").load(e);$("#page2 #c_q").fadeOut("fast");$("#page2 #c_q").fadeIn("fast")},getData1:function(a,b){c=a;var e="partial/fenlei/"+a+"_"+b+".html?t="+(new Date).getTime(); $("#page2 #c_q").load(e)},c_icons:function(a){$("#icon").html(a)}};if(b.getQueryStr("s_param")!=""){a=0;a++;var f=b.getQueryStr("s_param"),g=b["n"+b.getQueryStr("s_param")];$("#page2").load("partial/page2.html?t="+(new Date).getTime(),function(){$("#page1").hide();$("#page2").show(0,function(){b.getData(f,a);b.c_icons(g)})})}$(".fenlei li").live("click",function(){a=0;a++;var d=$(this).attr("rel"),c=$(this).attr("title");$("#page2").load("partial/page2.html?t="+(new Date).getTime(),function(){$("#page1").hide(); $("#page2").show(0,function(){b.getData1(d,a);b.c_icons(c)})})});$(".gohome").live("click",function(){$("#page1").show();$("#page2").hide()});$("#next").live("click",function(){a==b.pagesum?b.showLoad("\u5df2\u7ecf\u5230\u6700\u540e\u4e00\u9875\u3002",2E3):(a++,b.getData(c,a))});$("#pre").live("click",function(){a>1?(a--,b.getData(c,a)):b.showLoad("\u5df2\u7ecf\u662f\u7b2c\u4e00\u9875\u3002",2E3)});$("ul li textarea").live("click",function(){$(this).text()&&b.copy($(this).text(),$(this));$(this).find("a").removeClass("hover")})});