function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2013兴化一中高一物理(上学期)周练(21份) 下一篇:2013兴化一中高一物理(上学期)学案(30份) '; }