Popunder Scripts
Popunder Scripts
<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>.
-----------------------------------------------------------------------------------
----------
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">
// 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).
// 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>