function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2011高考历史一轮复习讲义(带详细解析) 下一篇:语文《雷雨》课件(语文版必修4) '; }