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年高考作文题:“为梦想加冕” '; }