js获取时间 判断就可以了。
now = new Date(),hour = now.getHours() ;if (hour < 12){//JS弹窗1 代码。比如$("ad2").hide();$("ad1").show();} else{$("ad1").hide();$("ad2").show();}