|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Show Yer Tits!
Industry Role:
Join Date: Feb 2002
Location: Somewhere Out there...
Posts: 25,792
|
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
__________________
![]() Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal
|
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
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. |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
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. |
|
|
|
|
|
#4 |
|
Show Yer Tits!
Industry Role:
Join Date: Feb 2002
Location: Somewhere Out there...
Posts: 25,792
|
Thanks for such a detailed explanation. Very helpful...
__________________
![]() Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
not a problem :-)
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: May 2006
Posts: 2,640
|
smart arse :-)
|
|
|
|