![]() |
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 |
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. |
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. |
Thanks for such a detailed explanation. Very helpful...
|
not a problem :-)
|
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