function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:数学:轨迹方程课件荟萃 下一篇:物理:反冲运动课件荟萃 '; }