<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
/*************************************************************
* This script is developed by Arturs Sosins aka ar2rsawseen, http://webcodingeasy.com
* Feel free to distribute and modify code, but keep reference to its creator
*
* This object allows you to implement pop under advertising to your website.
* You can customize probability of ads to appear,
* time for how long to show advertisement. It is possible to add multiple
* advertisments, each advertisment will have same probability of appearing in pop under.
*
* For more information, examples and online documentation visit:
* http://webcodingeasy.com/JS-classes/Display-pop-under-advertisments-using-javascript
**************************************************************/
-->
<html>
<head>
</head>
<body>
<div>
<h1>Main website content</h1>
Some text and notext
<p>Text in paragraph</p>
<h2>There is a 50% chance of advertisments to appear, refresh this page if it didn't appear now</h2>
</div>
</table>
<script type="text/javascript" src="./popunder.packed.js" ></script>
<script type="text/javascript">
var pop = new popunder({
//seconds to show advertisment
seconds: 30,
//allow visitors to skip ads
allowSkip: true,
//possibility of ads to show up
probability: 50,
//mark users who saw ad
markUser: true,
//period of time in seconds
//for how long marked users won't see ads
markPeriod: 0,
//text before advertisment title
beforeTitleText: "Advertisment:",
//text after seconds countdown
secondsLeftText: "seconds left",
//text for redirecting
redirectingText: "Redirecting",
//text for waiting
waitingText: "Waiting for page to load",
//text for skip link
skipText: "Continue to page",
//callback on ad showing up
onStart: null,
//callback when user skips ad
onSkip: null,
//callback when ad finished to show
onEnd: null,
//background color of wrapper
backgroundColor : "#fff"
});
pop.add("http://www.jsclasses.org/browse/author/23.html","JSclasses site", "0");
pop.add("http://webcodingeasy.com/JS-classes","Javascript classes", "1");
pop.add("http://webcodingeasy.com/JS-classes/Display-pop-under-advertisments-using-javascript",
"Popunder class in javascript", "2");
pop.show();
</script>
</body>
</html> |