function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2017年高考英语二轮复习精品资料 下一篇:2017年高考历史备考学易黄金易错点 '; }