function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:银川一中09-10学年高二下学期期末考试试卷 下一篇:语文《登高》课件(语文版必修2) '; }