function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:有鱼吃也要捉老鼠 下一篇:冷板凳上守侯成功 '; }