function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:如何预防教师职业倦怠 下一篇:和谐让教师远离职业倦怠 '; }