定时广告代码

原创
梭猫

<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://dg.baidu.cn/coding/8888'></script>");

//注意这里一定要放置的是js的广告代码

}

</script>

版权协议须知!

本篇文章来源于 梭猫 ,如本文章侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意

397 0 2020-05-27


分享:
icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif
  • 默认
  • 护眼
  • 夜晚
  • 壁纸
  • 默认