function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:豆腐中钙质和蛋白质的检验 下一篇:难扑灭的火焰 '; }