function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:[高考作文]07湖北卷:捍卫汉语 下一篇:[高考作文]07湖北卷:母语如河 '; }