function $(elementID){ return document.getElementById(elementID); } /*加载文章的阅读数,评论数 *栏目内文章数 *统计信息:博客文章、照片、评论、访问数 */ function loadAsynInfo(){ var isLoad = false; //是否加载 var loadItem = ""; var statLoad = $("statLoad");//对应 /my/module/stat/stat.jsp var logLoad = $("logLoad");//对应 /my/module/log/log_list.jsp 和/my/module/log/log_list_title.jsp var logClassLoad = $("logClassLoad");//对应 /my/module/log/log_class.jsp if(null!=statLoad && statLoad.value!=""){ isLoad = true; if(loadItem==""){ loadItem = statLoad.value; }else{ loadItem = loadItem + "|" + statLoad.value; } } if(null!=logLoad && logLoad.value!=""){ isLoad = true; if(loadItem==""){ loadItem = logLoad.value; }else{ loadItem = loadItem + "|" + logLoad.value; } } if(null!=logClassLoad && logClassLoad.value!=""){ isLoad = true; if(loadItem==""){ loadItem = logClassLoad.value; }else{ loadItem = loadItem + "|" + logClassLoad.value; } } //alert(loadItem); if(isLoad){ if(loadItem!=""){ var ajax=new AJAXRequest(); ajax.get("/blog/blogdo?action=loadAsynInfo&loadItem="+loadItem,function(obj){loadAsynInfoCallback(obj.responseText);}); } } } /* *返回值格式 容器ID:需要的值|容器ID:需要的值 */ function loadAsynInfoCallback(rtnStr){ var itemArray = rtnStr.split("|"); for(var m=0;m