function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2017-2018学年高一地理人教版必修2(习题+课件+教师用书)汇总 下一篇:2018版高考地理总复习(课件+教师用书+课时作业)汇总 '; }