Working popunder script on Chrome 30

Download source code from https://github.com/hpbuniat/jquery-popunder
Not Working on Chrome 31

Example script.. this example Popunder went user click any element on your website.
<html>
<head>
<title>Popunder script</title>
<script src="src/jquery.min.js" ></script>
<script src="src/jquery.popunder.js" ></script>
</head>
<body>

</body>
<script>
window.aOnePopunder = [
            ['http://www.google.com']
        ];

        var fOneHandler = function(e) {
            $.popunder(window.aOnePopunder);
   
   setTimeout(function(){
    window.aOnePopunder.f.close();
    console.debug("Colos suda ni");
   },10000);
        };
 window.fPopunder = function(event) {
            if (!window.fPopunderStack) {
                window.fPopunderStack = [[$(event.target).data('target'), {window: {height:100, width:100}, cb: function() {
                    console.log('github.com has been opened');
     event.close();
                }}]];
            }

            return window.fPopunderStack;
        };

        $(document).on('click',fOneHandler);
  
</script>
</html>

Click Here for demo

1 comments :

  1. I've found this month a popunder that works in all browsers, I'm very glad of it! I will share the link: http://getpopunder.com maybe you will need good luck!

    ReplyDelete

Category

Other post

Recent Posts