Home >
Technical & Creative Skills >
Programming, Servers & Scripts
Forcing a popunder to "popover" (13)
09-30-2014 06:50 AM
#1
brainbug (Member)
Forcing a popunder to "popover"
Hi guys,
Im looking for a way to force my popunders to be pushed to the surface.
Meaning my popunder will be displayed OVER the window the user is currently seeing instead.
Does anyone have input on this? Asking Google didn't bring me anywhere.
Thanks
09-30-2014 07:11 AM
#2
tap1on (Member)
in b4 everbody gets mad.
Search for javascript alert 
09-30-2014 07:22 AM
#3
brainbug (Member)

Originally Posted by
tap1on
in b4 everbody gets mad.
Search for javascript alert

will an altert in the popunder force it to the front?
09-30-2014 07:32 AM
#4
ohaiguyz (Member)
^^ yes
09-30-2014 07:43 AM
#5
brainbug (Member)
you guys are my favorite people! 
10-03-2014 10:19 AM
#6
brainbug (Member)
Got a quick followup on that one:
I managed with the alert and it works, the only issue is that the background behind the alert is blank.
I want to show the visitor the background and have an alert box in the front as well and at the same time it should have the same effect of pushing the popunder up to the surface.
Any hints?
Regards
10-03-2014 11:28 AM
#7
hatatitla (Member)
Did you insert alert to end of the code?
10-03-2014 02:47 PM
#8
andyvon (AMC Alumnus)
just a piece of advice: some traffic sources don't like this kind of stuff, popunders are supposed to be in the background for a reason, namely to not interrupt the user interaction with the site.
make sure you check with the TOS of your source, otherwise you might get banned.
10-03-2014 03:41 PM
#9
tomsko (Member)
maybe delaying javascript alert will load site in the background?
10-04-2014 04:23 AM
#10
zeno (Administrator)

Originally Posted by
brainbug
Got a quick followup on that one:
I managed with the alert and it works, the only issue is that the background behind the alert is blank.
I want to show the visitor the background and have an alert box in the front as well and at the same time it should have the same effect of pushing the popunder up to the surface.
Any hints?
Regards
Likely you put the code in the head?
If so, the body won't have even loaded yet.
Put the alert script inside the body tags and ideally delay it's execution.
10-04-2014 10:59 AM
#11
caurmen (Administrator)
Delaying the execution: if you're using jQuery you can use .delay() after the alert, otherwise you'll have to use SetTimeout().
10-04-2014 12:50 PM
#12
bbrock32 (Administrator)
^ What Caurmen said has been tested and works 
10-06-2014 09:25 AM
#13
brainbug (Member)
you guys are great! Its working. Big Thanks
Home >
Technical & Creative Skills >
Programming, Servers & Scripts