function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2015届高考物理一轮章末归纳提升课 下一篇:2015届高考物理一轮大专题复习 '; }