function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:热门时政人物解读:美国国务卿希拉里 下一篇:提高班级管理水平的10个故事(二) '; }