davidprince9194
Newbie
- Jun 12, 2014
- 14
- 0
Hi. I want to know how to use popunder ads( popads, popcash) on video, so when visitors click to play video, a popunder will open.
Sorry if my english is bad.
Sorry if my english is bad.
Thank for your reply.
Video popunders work same way as normal popunders. If you are using embedded content (thru embed/iframes) you most likely won't be able to add it without workarounds, why? Because iframes and embeds are 3rd party sites that you most likely don't have administrative access to thus can not manipulate their behaviour due to for example: browser same origin policy. But there is many things you can do, probably simplest is putting transparent element in front of embedded video so that user clicks it first activating your popunder script. If you are more familiar with coding you can embed your own video player with popunder scripts and just feed it correct data source.
Then its going to be a lot harder for you. Try positioning some html element in front of your video with some class or id, target it with js using class/id you defined before, then attach click event to it that will call some popunder script.You can get simple popunder script examples just by using google (tho keep in mind that outdated popunder scripts may not work with newer browsers (as they try to limit any popups) or may not work the way u expect them to work).
<!DOCTYPE HTML><html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
<style type="text/css">
.video-wrapper {
position: relative;
}
#curtain {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 99999999;
}
</style>
</head>
<body>
<div class="video-wrapper">
<!-- YOUR EMBED HERE -->
<div id="curtain"></div>
</div>
<script type="text/javascript">
$(function(){
$('#curtain').click(function(){
// call your popunder code here
$(this).hide();
});
});
</script>
</body>
</html>
I don't really have time now, but here is some short example:
Code:... <body> <div class="video-wrapper"> <!-- YOUR EMBED HERE --> <div id="curtain"></div> </div> <script type="text/javascript"> $(function(){ $('#curtain').click(function(){ // [COLOR=#ff0000][SIZE=3][B]call your popunder code here[/B][/SIZE][/COLOR] $(this).hide(); }); }); </script> </body> </html>
Can you give me an example of this?
<!DOCTYPE HTML><html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
<script src="jsPopunder.min.js"></script> <!-- YOU SHOULD SPECIFY CORRECT PATH HERE SINCE IT DEPENDS ON YOUR SETUP -->
<style type="text/css">
.video-wrapper {
position: relative;
}
#curtain {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 99999999;
}
</style>
</head>
<body>
<div class="video-wrapper">
<iframe width="420" height="315" src="https://www.youtube.com/embed/_lK4cX5xGiQ" frameborder="0" allowfullscreen></iframe>
<div id="curtain"></div>
</div>
<script type="text/javascript">
$(function(){
$('#curtain').click(function(){
jsPopunder('http://www.google.com'); // you can read more about parameters you can use in documentation
$(this).hide();
});
});
</script>
</body>
</html>
I gues you have wrong path to popunder script then.
[LIST]
[*][COLOR=#1E347B]<script[/COLOR][COLOR=teal]type[/COLOR][COLOR=#93A1A1]=[/COLOR][COLOR=#DD1144]"text/javascript"[/COLOR][COLOR=#1E347B]>[/COLOR]
[*][COLOR=#1E347B]var[/COLOR][COLOR=#48484C] pmauid [/COLOR][COLOR=#93A1A1]=[/COLOR][COLOR=#DD1144]'22233'[/COLOR][COLOR=#93A1A1];[/COLOR]
[*][COLOR=#1E347B]var[/COLOR][COLOR=#48484C] pmawid [/COLOR][COLOR=#93A1A1]=[/COLOR][COLOR=#DD1144]'20932'[/COLOR][COLOR=#93A1A1];[/COLOR]
[*][COLOR=#1E347B]var[/COLOR][COLOR=#48484C] fq [/COLOR][COLOR=#93A1A1]=[/COLOR][COLOR=#DD1144]'86400'[/COLOR][COLOR=#93A1A1];[/COLOR]
[*][COLOR=#1E347B]</script>[/COLOR]
[*][COLOR=#1E347B]<script[/COLOR][COLOR=teal]type[/COLOR][COLOR=#93A1A1]=[/COLOR][COLOR=#DD1144]"text/javascript"[/COLOR][COLOR=teal]src[/COLOR][COLOR=#93A1A1]=[/COLOR][COLOR=#DD1144]"https(:)//cdn(.)popmyads(.)com/pma(.)js"[/COLOR][COLOR=#1E347B]></script>[/COLOR]
[/LIST]