mailicreate
Junior Member
- Jan 17, 2015
- 129
- 28
Here is a simple tricky popup to make your users click invisible ads (thinking they're clicking the skip ad button). Code may need to be tweaked according to your ad source code. PM me for variation in code (randomly display to avoid getting banned).
Goes into the head tag
Goes into the body tag
Goes into the head tag
Code:
<style>
.black_overlay{
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
.white_content {
display: none;
position: fixed;
top: 25%;
left: 25%;
width: 50%;
height: 50%;
padding: 16px;
border: 16px solid #333;
background-color: white;
z-index:1002;
overflow: auto;
}
.no-close .ui-dialog-titlebar-close {display: none }
</style>
Goes into the body tag
Code:
<script>
function myclickdoes() {
var skip1 = document.getElementById("skip");
skip1.style.visibility="hidden";
var vaid= document.getElementById("aid");
vaid.style.color = "red";
}
window.onload= function(){
document.getElementById('light').style.display='block';
document.getElementById('fade').style.display='block';
};
</script>
<div id="light" class="white_content"><a id="aid" href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'" style="color:#eee">X</a></br>
Do you want to Register? If no click Skip to view content.
[COLOR=#ff0000] //Very important below in red. You can also use a button instead of div[/COLOR]
<div id="skip" style="opacity:1;border:1px solid #333; width:49px;background: url('[COLOR=#ff0000]your[/COLOR] [COLOR=#ff0000]skip png url[/COLOR]') no-repeat;">
<[COLOR=#FF0000]YOUR AD code [/COLOR][COLOR=#ff0000]onclick ="myclickdoes();" style="width:49px; height:20px; visibility:hidden" [/COLOR]></div>
</div>
</div>
<div id="fade" class="black_overlay"></div>
Last edited: