function will() { 
if (event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') { 
  window.focus(); 
document.cookie='b_online=yes';} 
}
function ok() { 
if (event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') { 
  window.focus(); 
document.cookie='a_online=yes';
}<script language="JavaScript"> 
if ((web_cookie('a_online')!='') && (web_cookie('b_online')!='')) { 
广告不显示;

else{ 
广告显示;

</script>  这样有一个弊端就是关闭浏览器后,再打开的话,广告又显示了。而我的要求是一天只让广告显示一次,我用expires试了半天,也达不到预期的效果。这里应该要怎么写判断啊?