$(".newtools_nav a").live('click',function(e){window.location.href=$(this).attr("href")});var li_arr="";$.each($(".newtools_listul li"),function(i,elm){li_arr+="'"+$(elm).find('.list_toolslogo').attr('src')+"'";if(i<($(".newtools_listul li").length-1)){li_arr+=","}});$.get("https://www.daohangtx.com/config/get_tool/get_data.php",'logourl='+li_arr,function(res){$.each(res,function(i,d){var a=$('img[src="'+d.tool_logo+'"]').parent().find(".list_count font").html(castNum(d.tool_all_click))})});var path=location.pathname;if(path.indexOf('index_')!=-1){var reg=new RegExp('.*[\index_]+(.*)[\.]+.*');path=parseInt(path.replace(reg,"$1"))}else{path=1}pages(pageNum);function pages(pageNum){laypage({cont:'fanyetools',pages:pageNum,groups:5,skin:"",skip:true,curr:path,last:pageNum,jump:function(obj,first){if(!first){if(obj.curr==1){location='index-1.html'/*tpa=https://www.daohangtx.com/js/index.html*/}else{location='index_'+(obj.curr)+'.html'}}}})}$(".layui-laypage-btn").click(function(e){if(parseInt($(".layui-laypage-skip").val())>pageNum){alert('总页数不得超过'+pageNum+'页！')}});$(".newtools_listul a").live("click",function(){var src_logo=$(this).find('.list_toolslogo').attr('src'); $.get("https://www.daohangtx.com/config/get_tool/setClick.php","link="+src_logo,function(data,status,obj){}); });