GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to make this code do a popunder? (https://gfy.com/showthread.php?t=183152)

Hardcore J 10-06-2003 02:53 PM

How to make this code do a popunder?
 
Is there a way to change the coding so that this will be a popunder? (I know blur needs to be added somewhere, no idea where..)

Thanks in advance

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

<**scrip**t>
//Close Window Script
//JOSH CARRICO
//This Script works near perfect for IE
//Netscape is a 50/50. I can get it down to the refresh and X buttons
//I tried to manipulate almost all of the window properties to see
//if I could detect it closing.....
function SetIt(){
//Need to store Page for Netscape Look Up
ThePage=document.location.href;
}
function JOSHSAYSGO6(){
if(document.all){
var tempX = event.clientX + document.body.scrollLeft;
var tempY = event.clientY + document.body.scrollTop;
//If mouse is over X will return very very large negative numbers
if(tempX<0&&tempY<0){
ItBClosed();
}
}else{
//Detects Back/Forward Buttons and Location Box Launching
ThisPage=document.location.href;
if(ThePage!=ThisPage){
//Different Location detected
}else{
ItBClosed();
}
}
}
function ItBClosed(){
window.open("http://www.stupidcash.com/console/pd/","new_window6","toolbar=no,scrollbars=no,menubar= no,location=no,height=478,width=740");
}
<**/scrip**t>

George Bush Jr. 10-06-2003 03:35 PM

The page that you want to blur should have the blur code on it. Not the code that pops the page you want blurred. Although i suppose you could do it that way.

anycode = window.open(
anycode.blur();
window.focus();

something like that you would have to fool with it a bit

Hardcore J 10-06-2003 09:14 PM

Quote:

Originally posted by George Bush Jr.
The page that you want to blur should have the blur code on it. Not the code that pops the page you want blurred. Although i suppose you could do it that way.

anycode = window.open(
anycode.blur();
window.focus();

something like that you would have to fool with it a bit

How would I put that into a ja-va scr*pt ?? I'm not very good at any coding languages other than HTML..

Also, keep in mind that I don't want it to focus, I want it to stay behind the other windows.

Anothers 10-06-2003 09:19 PM

maybe this will help
(don't know what exactly is on that console page)

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

<**scrip**t>

....
function ItBClosed(){
window.open("http://www.stupidcash.com/console/pd/","new_window6","toolbar=no,scrollbars=no,menubar= no,location=no,height=478,width=740");
self.focus();
}
<**/scrip**t> [/B][/QUOTE]

sumphatpimp 10-06-2003 09:21 PM

hit Google with

popunder

tons of free scripts

Hardcore J 10-06-2003 09:46 PM

Quote:

Originally posted by George Bush Jr.
The page that you want to blur should have the blur code on it. Not the code that pops the page you want blurred. Although i suppose you could do it that way.

anycode = window.open(
anycode.blur();
window.focus();

something like that you would have to fool with it a bit

Looks like this was correct, in the body on the page that I wanted to blur I put in onload="window.blur();" and it works perfectly.

George Bush Jr. 10-06-2003 11:18 PM

There is a way to do it from the first page , but it involves actually writing the content for the second page from the first page. And it only works on a page you want to blur thats on your own server.

I notice lots of people ask that question , and i think its because they assume the blur is done from the page that pops .

There are times when you may want this . if so i suggest using google and finding a script thats right for you.

berg.the.red 10-06-2003 11:40 PM

on the actual popup page code make the last code statement ( or use an onload="" ) --self.blur();


All times are GMT -7. The time now is 03:18 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123