function get_url(str){var rep=/http:\/\/\w+\.\w+\.\w+\//;var link=str.match(rep);return link}if($('.newup_liebiao').hasClass('newup_xuanzehover')){rec($('.newup_leftlihover').children('a'),1)}else{get_win('爱Q生活网',$('.newup_ck_iqshw'));get_win('QQ业务乐园',$('.newup_ck_qqyewu'));get_win('小刀娱乐网',$('.newup_ck_xiaodao'));get_win('技术QQ网',$('.newup_ck_jishuqq'));get_win('QQ国际网',$('.newup_ck_qqguoji'));get_win('QQ我爱网',$('.newup_ck_qzone520'));get_win('QQ钻石皇朝',$('.newup_ck_txzshc'));get_win('爱好资源网',$('.newup_ck_aihaozy'))};$(".newup_left ul li").click(function(e){if($(this).hasClass('newup_leftlihover')){return}$(".newup_leftlihover").removeClass("newup_leftlihover");$(this).addClass("newup_leftlihover");rec($(this).children('a'),1)});var pageObj='';var bool=0;function rec(obj,num){var name='';if(typeof(obj)==='object'){name=$.trim(obj.html())+""}else{name=obj}var ld=layer.load(1,{shade:[0.1,'#000']});pageObj=name;if(name=='所有网站'){name=''}$.get("https://www.daohangtx.com/config/get_rec/getdata.php","name="+name+"&page="+num,function(res){$("#rec_count").html(res.count);if($(".newup_right_container ul").html()==''){pages(res.pages,'page_box')}else if(pageObj!=bool){pages(res.pages,'page_box');bool=pageObj}layer.close(ld);var li="";if(res.length<1){$(".newup_right_container ul").html('<div style="text-align: center; color: #aaa; font-size: x-large; padding: 50px;">暂无更新内容</div>')}else{$.each(res.data,function(i,a){li+='<li><p class="newup_right_jcmc"><a href="'+get_url(a.rec_url)+'" target="_blank" class="newup_right_webxx"><img src="/webimg/ico/'+get_ico(a.rec_url)+'" width="16" height="16" class="newup_right_ico"><span class="newup_right_webname">[ '+a.file_come+' ]</span></a><a href="'+a.rec_url+'" target="_blank" class="newup_right_jcname">'+a.rec_name+'</a></p><p class="newup_right_grade"><img src="s5.gif"/*tpa=https://www.daohangtx.com/Skins/mb/images/s5.gif*/ height="14px" width="80px" class="newup_right_gradeimg"></p><p class="newup_right_time"><font color="red">'+$.formatTime.UnixToDate(parseInt(a.last_updated)+21000)+'</font></p><p class="newup_right_size">'+a.rec_size+'</p><p class="newup_right_person">'+a.click+'°</p><p class="newup_right_btn"><a href="'+a.rec_url+'" target="_blank">浏览</a></p></li>'});$(".newup_right_container ul").html(li)}})}function pages(pageNum,pagebox){laypage({cont:pagebox,pages:pageNum,groups:5,skin:"",skip:true,last:pageNum,jump:function(obj,first){if(!first){rec(pageObj,obj.curr);$("body").animate({scrollTop:0})}}})}function get_ico(str){var rep=/\.\w+\./;var link=str.match(rep)+"";return link.replace(".","")+'ico'}$('.newup_right_jcname').live('click',function(){cl_count($(this).attr('href'))});$('.newup_right_btn a').live('click',function(){cl_count($(this).attr('href'))});$('.newup_ck_container a').live('click',function(){cl_count($(this).attr('href'))});function cl_count(url){$.get('https://www.daohangtx.com/config/get_rec/count.php','url='+url,function(res){})}function get_win(name,obj){var ld=layer.load(1,{shade:[0.1,'#000']});var li='';$.post('https://www.daohangtx.com/config/get_rec/get_window_data.php','name='+name,function(res){layer.close(ld);if(res.length<1){return}obj.find('.newup_ck_title a').attr('href',get_url(res[0].rec_url));$.each(res,function(i,a){var now=new Date();var jctime=$.formatTime.UnixToDate(parseInt(a.last_updated)+21000);var nowtime=$.formatTime.UnixToDate((now.getTime()/1000)+30000);li+='<li><i> · </i><a href="'+a.rec_url+'" target="_blank" class="newup_ck_href">'+a.rec_name+'</a><a class='+(nowtime==jctime?"newup_ck_newtime":"newup_ck_oldtime")+'>'+jctime+'</a></li>'});obj.find('.newup_ck_container ul').html(li)})}