function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2008一轮历史复习课件(全套)最新! 下一篇:[优秀范例]命题作文:品杯中水(点评) '; }