<script type="text/javascript"> var h = new Date().getHours(); var t = ""; if(h >= 7 && h <= 13){ t = "广告1"; }else if(h >= 14 && h <= 20){ t = "广告2"; } else if(h >= 21 || h <= 6){ t = "广告3"; } document.getElementById('time_ads').innerHTML = t; </script>
本文摘自网络,不代表短经典网立场 https://www.duanjingdian.com/1027.html