function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:预测2015年高考作文题:“独是一种人生追求” 下一篇:高考临考复习的取舍之道 '; }