Create popup ad appears 1 time / 1 day / 1 IP for blogspot
Popup Ad will sometimes make your blog readers uncomfortable, but the following tips will help you create pop-up ads to appear only 1 time / 1 day / 1 IP, and hopefully will help you both ad effective, does not irritate your readers. To setup this tool, you do the following instructions: Step 1 : Go to Dashboard > Template > Edit HTML Step 2 : Find <body> , replaced by 1 in 2 the code below (S elect All and Ctrl +C) : CODE 1: <script>//<![CDATA[ function Set_Cookie(name, value, expires, path, domain, secure) { var today = new Date(); today.setTime(today.getTime()); var expires_date = new Date(today.getTime() + (expires)); document.cookie = name + "=" + escape(value) + ((expires) ? ";expires=" + expires_date.toGMTString() : "") + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "") + ((secure) ? ";secure" : ""); } function Get_Cookie(name) { var start = document.cookie.indexOf(name + "="); var len = start + name.length + 1; if ((!start) && (name != document.cookie.substring(0, name.length))) { return null; } if (start == -1) return null; var end = document.cookie.indexOf(";", len); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(len, end)); } function Delete_Cookie(name, path, domain) { if (Get_Cookie(name)) document.cookie = name + "=" + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "") + ";expires=Mon, 11-November-1989 00:00:01 GMT"; } function popunder() { if (Get_Cookie('cucre') == null) { Set_Cookie('cucre', 'cucre Popunder', '1', '/', '', ''); var url = "http://blog.linhdungvn.com/"; pop = window.open(url, 'windowcucre'); pop.blur(); window.focus(); } } function addEvent(obj, eventName, func) { if (obj.attachEvent) { obj.attachEvent("on" + eventName, func); } else if (obj.addEventListener) { obj.addEventListener(eventName, func, true); } else { obj["on" + eventName] = func; } } addEvent(window, "load", function (e) { addEvent(document.body, "click", function (e) { popunder(); }); }); //]]></script><body onclick='popunder();'> Step 3: Replacehttp://free-download-linkmf.blogspot.com/ the URL you want to open ad in Popup.
No comments :
Post a Comment