Anti - Ad - Block - Script!

Jayseanp

Soooo Bored!
Oct 26, 2013
394
37
Hey Guys,

For people who own a retro, forum or whatever and use ad's to generate money this is a script for that.

CSS -
---------------------------------------------------------------------
<Style type = 'text / css' >
# {Stickymsg
position: fixed;
bottom: 10px;
line-height: 16px;
left: 10px;
z-index: 30000;
opacity: 0.8;
width: 260px;
height: auto;
background: # cf3737;
color: # fff;
text-shadow: rgba (0,0,0,0.3) 0px-1px 0px;
padding: 10px;
text-decoration: none;
font-size: 11px;
font-family: Tahoma;
border: 1px solid # 771b1b;
box-shadow: rgba (0,0,0,0.3) 1px 0px 4px, inset 0px 1px 0px # f66c6c;
border-radius: 3px;
}
</ Style>
-------------------------------------------------------
JS
------------------------------------------------------------------------------------------------
<Script type = "text / javascript" src = "adblock link js" > </ script>
<Script type = "text / javascript" >
function SetCookie (c_name, value, expiredays)
{
var EXDATE = new Date ()
exdate.setDate (exdate. getDate () + expiredays)
document.cookie = c_name + "=" + escape (value) +
((Expiredays == null)? "" : "expires =" + exdate.toGMTString ())
}
if (document.cookie.indexOf ( "adblock =" ) <0) {
if (document.getElementById ( "TestAdBlock" ) == undefined)
{

document.write ( '<div id=stickymsg> </ a> <strong> AdBlock </ strong> has been detected! Help Habbix allowing our site this plugin or disabling AdBlock . </ div> ' );
}
}
</ Script>
------------------------------------------------------------------------------------------------------------------
This will basically , pop up a red box showing a warning sign.

Downloads :
JavaScript File:

Regards
Jay
 

Users who are viewing this thread

Top