function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:专家告诉你高考作文怎么写(2) 下一篇:高考应试作文临阵磨枪 '; }