function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:生物:高中生物知识系统归类 下一篇:物理:高考第二轮复习建议 '; }