function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:名师在线:高考作文临阵解答 下一篇:考场作文技巧:学学“一句话开头” '; }