$(document).ready(function(){$("span[type=ajax]").each(function(){loadajaxlabel($(this));});if($("span[type=showperiods]").length>0){var url="/tools/submit_ajax.ashx?action=getkj";$.ajax({url:url,type:"get",cache:false,datatype:"json",error:function(){},success:function(data){if(data.status===1){$("span[type=showperiods]").each(function(){;$(this).html(data.nextperiods);});}}});}});function loadajaxlabel(obj){var data=obj.attr("id")+"-----";var array=data.split("-");var labeltype=array[0].tolowercase();if(labeltype==="http"){gethttplabel(obj,array);}else if(labeltype==="articlecontent"){getarticlecontent(obj,array);}} function gethttplabel(obj,array){$.get("/tools/label_ajax.ashx?action=gethttplabel&itemename="+array[1]+"¶m="+array[2]+"&random="+math.random()+"",function(data){$(obj).html(data);});} function getarticlecontent(obj,array){$(obj).html("正在读取数据...");$.get("/tools/label_ajax.ashx?action=getarticlecontent&id="+array[1]+"&random="+math.random()+"",function(data){$(obj).html(data);});}