Forum Moderators: open
Have you checked this in NN 6.2? It may be a bug in 6.0 and 6.1 they've corrected. At any rate, your only having trouble with under .5% of visitors.
What is it with these guys? :-)
It'll never happen, of course, but wouldn't it be great if developers got together and stopped designing for Netscape? If only 15-20% of sites returned: "We're sorry.., Netscape hates developers and, therefore, this site will not display for Netscape users." maybe then they'd pull their head out their ass :-)
So the opening window runs some javascript code that launches and names the pop-under window "popwin" and then says popwin.blur() followed by self.focus() -- this works.
<script type="text/javascript"language="Javascript">
var popunder=new Array()
popunder[0]="inbetween.html"
// Specify the width and height of new popunder window (in pixels).
var width = '600';
var height = '550';
var p = 'scrollbars=yes,resizable=no,toolbar=no,' + //these are obvious variables. set "yes" or "no".
'menubar=no,status=no,location=no,left=0,top=0,height=' + //yes/no, & the screen location
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;
}
if ((navigator.userAgent.indexOf("AOL")!=-1)){
document.cookie="popunder=yes"
}
function loadornot(){
if (get_cookie('popunder')==''){
andBoom()
document.cookie="popunder=yes"
}
}
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()
self.window.focus()
}
if (one_time==0)
load_pop_power()
else
loadornot()
</script>
function load_pop_power(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p)
win2.blur()
self.window.focus()
}
--
The window.open() method in this code declares the new window name as "bw". Setting the win2 variable equal to the window.open() method doesn't make sense to me. I think you just want the function to call the method, blur the pop-up and then focus the current window.
I might be missing something, but I'd suggest this:
--
function load_pop_power(){
window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p);
bw.blur();
self.focus();
}