PDA

View Full Version : Popup Question?


PokerVillain
03-02-2009, 09:52 AM
Would this sytem work for popups? I want to be able to display popups to unregistered users only.

Morgan
03-04-2009, 02:27 PM
It depends on what ad code you use for the pop-up and whether anything interferes with the code that creates the pop-up. Generally pop-ups would be created using JavaScript, and GAB does allow you to create HTML ads, but as JavaScript is run client-side, there is no guarantee the pop-up would show to the end user. The below JavaScript worked on this site, but it may or may not work on your site, and if someone is using a pop-up blocker, s/he of course wouldn't see the pop-up:

<script type="text/javascript">
function gabpopupwindow()
{
newWindow = window.open('http://www.thevbgeek.com', 'gabnewwindow', 'toolbar=no,menubar=no,resizable=no,scrollbars=no, status=no,location=no,width=300,height=500');
}
gabpopupwindow();
</script>