function closevidlink() { $(".playerbanners,.skipvidbanner").hide(); jwplayer("mediaplayer33").remove(); $(".mainembedplayer").show(); } i=6; function loopsecounds() { $(".skipvidbanner span").html(i); var setstops = setTimeout(function() { loopsecounds() }, 1000); if (i == 0) { clearTimeout(setstops); $(".skipvidbanner").html("تخطى الاعلان"); } i--;} $(document).ready(function() { setTimeout(function() { }, 300); setTimeout(function() { console.log("SELECT cat,id,country,cats,type,bnr,bigbnr,width,height,linkbnr,allowedviews,viewsskip,mobile,web FROM ara_banners WHERE status != '0' AND cat != '0' AND linkbnr='0' AND cat != '170' AND country = '' ORDER BY RAND()"); $("#banner_347").append("
"); setTimeout(function() { $(".closeBtnBnr").show(); }, 3000); }, 600); setTimeout(function() { }, 900); setTimeout(function() { console.log("SELECT cat,id,country,cats,type,bnr,bigbnr,width,height,linkbnr,allowedviews,viewsskip,mobile,web FROM ara_banners WHERE status != '0' AND cat != '0' AND linkbnr='0' AND cat != '170' AND country = '' ORDER BY RAND()"); $("#banner_364").append(""); setTimeout(function() { $(".closeBtnBnr").show(); }, 3000); }, 1200); setTimeout(function() { console.log("SELECT cat,id,country,cats,type,bnr,bigbnr,width,height,linkbnr,allowedviews,viewsskip,mobile,web FROM ara_banners WHERE status != '0' AND cat != '0' AND linkbnr='0' AND cat != '170' AND country = '' ORDER BY RAND()"); $("#banner_345").append(""); setTimeout(function() { $(".closeBtnBnr").show(); }, 3000); }, 1500); setTimeout(function() { }, 1800); setTimeout(function() { }, 2100); setTimeout(function() { }, 2400); setTimeout(function() { }, 2700); setTimeout(function() { }, 3000); setTimeout(function() { console.log("SELECT cat,id,country,cats,type,bnr,bigbnr,width,height,linkbnr,allowedviews,viewsskip,mobile,web FROM ara_banners WHERE status != '0' AND cat != '0' AND linkbnr='0' AND cat != '170' AND country = '' ORDER BY RAND()"); $("#banner_336").append(""); setTimeout(function() { $(".closeBtnBnr").show(); }, 3000); }, 3300); setTimeout(function() { }, 3600); setTimeout(function() { }, 3900); setTimeout(function() { }, 4200); setTimeout(function() { }, 4500); setTimeout(function() { }, 4800); });