function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:语文:备战高考语句衔接专题测试集锦 下一篇:历史人民版必修3精品教案汇编 '; }