I have a code for a popunder which works very well on all the browsers but I do not manage to insert the fact that the popunder has to open 1 time a day for every Internet user. (Otherwise, it is really too intrusive!)
I know that I have to manage за with cookies but I do not manage to couple my code below with all the codes of cookie which I find.
Could you light me svp?
Below in the first one the code of the file JS, then the script put in my homepage.
Thanks a lot !
This is the content of the file popunder.js :
var BubpuShown = false;
var BubPopWidth = 1024;
var BubPopHeight = 768;
var BubPopFocus = 0;
var Bub_Top = null;
function BubdoOpen(url)
{
var popURL = "about:blank"
var popID = "ad_" + Math.floor(89999999*Math.random()+10000000);
var pxLeft = 0; var pxTop = 0;
pxLeft = (BubGetWindowLeft() + (BubGetWindowWidth() / 2) - (BubPopWidth / 2)); pxTop = (BubGetWindowTop() + (BubGetWindowHeight() / 2) - (BubPopHeight / 2)); if ( BubpuShown == true ) return true; var PopWin=Bub_Top.window.open(popURL,popID,'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=1,res izable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + BubPopWidth + ',height=' + BubPopHeight);
if (PopWin)
{
BubpuShown = true;
if (BubPopFocus == 0)
{
PopWin.blur();
if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1) { Bub_Top.window.blur(); Bub_Top.window.focus(); } }
PopWin.Init = function(e) {
with (e) {
Params = e.Params;
Main = function(){
if (typeof window.mozPaintCount != "undefined") { var x = window.open("about:blank"); x.close(); } else if (navigator.userAgent.toLowerCase().indexOf("chrome/2") > -1) { var x = window.open("about:blank"); x.close(); }
Bookmarks