function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:预测2016年高考作文题:“小人物的价值” 下一篇:预测2016年高考作文题:“优中更优,强中更强” '; }