function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:高考30天冲刺:语文数学英语要点梳理 下一篇:2012年4月份百题精练(2) '; }