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)
-   -   Can someone take a look at this script (https://gfy.com/showthread.php?t=671026)

LiveDose 10-27-2006 02:26 PM

Can someone take a look at this script
 
and tell me what this part does specifically:

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()


Basically what is the 'win2' relating to? My browser shows an error when I load a page with this script in it.

Thanks.

http://www.netevolution.co.uk/scripts.asp?ID=46

mortenb 10-27-2006 02:43 PM

you are setting win2 as an object with the win2=window_etc line. it's just a name for the object.. you could have named it "itLikeToSuckBigPenisDaily".

if you are getting an error it is because you haven't set the "winfeatures" variable or the "popunder" variable.

mortenb 10-27-2006 02:48 PM

Basically it is a function that pops a window and set it to be behind the current window.

the lines are as follows:

function loadpopunder(){ -- this is the function declaration and name

win2=window.open(popunder,"",winfeatures) -- this is the part that pops open a new window. you need to have a variable named "popunder" with the url that the new window should open and another variable named "winfeatures" with the properties of the new window.

win2.blur() -- this line sends the new window to the background.

window.focus() -- this line makes sure that the original window is still on top





you need a closing line with a "}" to close the funtion declaration.

LiveDose 10-27-2006 02:52 PM

Thanks for such a detailed explanation. Very helpful...

mortenb 10-27-2006 03:02 PM

not a problem :-)

en21 10-27-2006 03:43 PM

smart arse :-)


All times are GMT -7. The time now is 07:05 PM.

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