<script type="text/javascript">var h = new Date().getHours();var t = "";if(h >= 7 && h <= 13)
{ t = "<div class='inde_t_ad'><a href='http://www.daixiao360.cn/' target='_blank' rel='nofollow'>
<img src='http://www.daixiao360.cn/skin/cmsmoban/images/logo.png' border='0' /></a></div>"; }
else if(h >= 14 && h <= 20){ t = "廣告2";}
else if(h >= 21 || h <= 6){ t = "廣告3"; }document.getElementById('time_ads').innerHTML = t;</script>
注釋:
早7點到13點顯示廣告1
14點到20點顯示廣告2
19點到次日6點顯示廣告3