<script> function adCheck(){ var myDate = new Date(); var aaa=myDate.getHours(); if(parseInt(aaa)>=1 && parseInt(aaa)<=5 ){ //投放时间设置 return true; }else{ return false; } } if(adCheck()){ //投放 document.writeln("<script type='text/javascript' charset='UTF-8' async src='https:\/\/vlwx.com\/ad\/'><\/script>");//注意这里一定要放置的是js的广告代码 } </script>
暂无讨论,说说你的看法吧