function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:喜讯!60分作文命中!喜获800元奖励! 下一篇:如何有效避免考前综合征? '; }