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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-27-2006, 02:26 PM   #1
LiveDose
Show Yer Tits!
 
LiveDose's Avatar
 
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
LiveDose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2006, 02:43 PM   #2
mortenb
Confirmed User
 
mortenb's Avatar
 
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.
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2006, 02:48 PM   #3
mortenb
Confirmed User
 
mortenb's Avatar
 
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.
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2006, 02:52 PM   #4
LiveDose
Show Yer Tits!
 
LiveDose's Avatar
 
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
LiveDose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2006, 03:02 PM   #5
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
not a problem :-)
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2006, 03:43 PM   #6
en21
Confirmed User
 
Join Date: May 2006
Posts: 2,640
smart arse :-)
en21 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.