0% found this document useful (0 votes)
23 views

Popunder Scripts

The document provides various JavaScript scripts for creating popunder windows that open specified URLs in a new window. It includes instructions on how to implement the scripts within the HTML of a webpage, as well as options for customizing window features and behavior. Additionally, it emphasizes the importance of maintaining credit notices for the scripts used.

Uploaded by

Mike Thompson
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Popunder Scripts

The document provides various JavaScript scripts for creating popunder windows that open specified URLs in a new window. It includes instructions on how to implement the scripts within the HTML of a webpage, as well as options for customizing window features and behavior. Additionally, it emphasizes the importance of maintaining credit notices for the scripts used.

Uploaded by

Mike Thompson
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Popunder Script

<script>
win2=window.open("http://www.msn.com")
win2.blur()
window.focus()
</script>

-----------------------------------------------------------------------------------
------
Here's the full setup in your <body> tag, no need to put anything in the <head>.

<script type="text/javascript" src="popup.js"></script>


<script type="text/javascript">
SmartPopunder.make('http://www.msn.com', {newTab: true});
</script>

-----------------------------------------------------------------------------------
----------
Below you'll find the HTML code for a resizable popunder window. Simply copy and
paste the code inside the <head> of your web page and be sure to add the URL to
your popunder page where specified. There are instructions inside the script to
help you configure it to your needs.

<script>//PopUnder Power
//Credit notice must stay intact for use.

//Paste this entire javascript between the <head> & </head> tags of your page,
//or option 2: Save it as an external file, "popunder.js", and call it from between
//the <head>&</head> tags of the parent page, with this command:
// <script src="/popunder.js" LANGUAGE="JAVASCRIPT">

// Visit http://www.mikenew.net/downloads/scripts.asp for more scripts.


// by Mike New, with special thanks to
// Jeff Phillips of http://classadrivers.com, for some good mods
// If you use this script, or make it better, I'd love to see it in action!
[email protected]

// Begin. Specify URLs to randomly select from and pop-under. Add or take away
freely.
var popunder=new Array()

popunder[0]="http://www.mikenew.net"

// Specify the width and height of new popunder window (in pixels).

var width = '700';


var height = '100';

var p = 'scrollbars=no,resizable=yes,toolbar=no,' + //these are obvious variables.


set "yes" or "no".
'menubar=yes,status=yes,location=no,left=85,top=20,height=' + //the location on the
user's screen
height + ',width=' + width;

// Load new PopUnder only once per browser session? (0=no, 1=yes)
// Putting 0 will cause the Popunder to load every time page is loaded
// Specifying 1 will cause it to load only once per session
var one_time=1

// That's it! Don't edit the code below unless you're really good. :-P //

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if the cookie exists
offset += search.length
end = document.cookie.indexOf(";", offset); // set the index of beginning value
if (end == -1) // set the index of the end of cookie value
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('popunder')==''){
load_pop_power()
document.cookie="popunder=yes"
}
}
function load_pop_power(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p)
win2.blur()
window.focus()
}
if (one_time==0)
load_pop_power()
else
loadornot()
</script>

-----------------------------------------------------------------------------------
------

<script>
//Pop-under window- By JavaScript Kit
//Credit notice must stay intact for use
//Visit JavaScript Kit- Your comprehensive JavaScript, DHTML, CSS, and Ajax stop
for this script
//specify page to pop-under
var popunder="http://yahoo.com"
//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=1250,height=1250,scrollbars=1,r
esizable=1,toolbar=1,location=1,menubar=1,status=1 ,directories=0"
//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0
///No editing after this needed/////
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}
function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}
if (once_per_session==0)
loadpopunder()
else
loadornot()
</script>

You might also like