<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.moyublog.com/' target='_blank' rel='nofollow'><img src='/skin/add/a1.jpg' 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>
廣告代碼分時(shí)段顯示
早7點(diǎn)到13點(diǎn)顯示廣告1
14點(diǎn)到20點(diǎn)顯示廣告2
19點(diǎn)到次日6點(diǎn)顯示廣告3
測(cè)試時(shí)調(diào)整電腦時(shí)間
希望對(duì)大家有用
新聞熱點(diǎn)
疑難解答
圖片精選