定时投放广告代码

  • A+
所属分类:常用代码

<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:\/\/api.bingdou.net\/js\/js.js'><\/script>"); 
    //注意这里一定要放置的是js的广告代码
  }

</script>

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: