function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:预测2015年高考作文题:“青春的弯路” 下一篇:预测2015年高考作文题:“细节铸就人生的辉煌” '; }