POPUNDER Javascript code -SakuraLive-

Below is the POPUNDER javascript code (already embedded w/ your unique affiliate ID), which you can place on any html page of your website. You can furthermore customize the popunder window size as you see fit (these variables are highlighted in red). When the user clicks anywhere on this page, 2 things will happen.

Attention:
1) a new popunder window (which can not be blocked by any browsers popup blocker) will fire off and will display the SakuraLive enlarged random performers preview page.
2) While the popunder window fires off in the background, your user will not be deterred from doing whatever it was they were doing initially. If they clicked on a video, they will still be able to play that video, if they click on another link, they will still go to that link destination. This JS code was designed to be as unintrusive as possible so as to not compromise mindset of the user.

Important notes on setting up the code properly:



<body>
<script language='JavaScript' type='text/javascript'> 
var dcPuShown = false;

function dcDoOpen(url)
{
if ( dcPuShown === true )
{
return true;
}

var dcWindow = window.open(url, "ljPu", "toolbar,status,resizable,scrollbars,menubar,location,height=900,width=1200");
window.setTimeout(window.focus, 500 );

if ( dcWindow )
{
dcWindow.blur();
dcPuShown = true;
}

return dcWindow;
}


function dcSetCookie(name, value, time)
{
var expires = new Date();

expires.setTime( expires.getTime() + time );

document.cookie = name + "=" + value + "; expires=" + expires.toGMTString() + "; path=/";
}


function dcGetCookie(name)
{

var cookies = document.cookie.toString().split('; ');
var cookie, c_name, c_value;

for (var n=0; n<cookies.length; n++)
{
cookie  = cookies[n].split("=");
c_name  = cookie[0];
c_value = cookie[1];

if ( c_name == name )
{
return c_value;
}
}

return null;
}


function dcCheckTarget(e)
{
var cookieValue = dcGetCookie("popundr");
var isRefDenied = dcCheckIsRefDenied();

if ( isRefDenied === true )
{
dcSetCookie("popundr", 1, 60*60*1000);
return ;
}

if ( cookieValue === null )
{
dcDoOpen("http://www.mmaaxx.com/pu/sakuralive_ch/index001.html?affid=us6905");

dcSetCookie("popundr", 1, 24*60*60*1000);
}
}


function dcCheckIsRefDenied()
{ 
return false;
}


function dcInitPu()
{
if ( document.attachEvent )
{
document.attachEvent( "onclick", dcCheckTarget );
}
else if ( document.addEventListener )
{
document.addEventListener( "click", dcCheckTarget, false );
}
}



dcInitPu();

</script>
</body>
	

Please copy and paste this code below: