File: example.html

Recommend this page to a friend!
  Classes of Arturs Sosins   Pop under   example.html   Download  
File: example.html
Role: Example script
Content type: text/plain
Description: Example script
Class: Pop under
Display interstitial advertising
Author: By
Last change: Proper doctype added for fixed position to work in IE
Date: 12 years ago
Size: 2,421 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <!-- /************************************************************* * This script is developed by Arturs Sosins aka ar2rsawseen, * 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: * **************************************************************/ --> <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("","JSclasses site", "0"); pop.add("","Javascript classes", "1"); pop.add("", "Popunder class in javascript", "2");; </script> </body> </html>