function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:各地高三历史考题精拣测试汇总 下一篇:语文苏教版必修1《劝学》学案汇编 '; }