Hi,
I need an advanced popup script. I have an account at popuptraffic and one at popupsponsor. I use both popups and popunders, and i need to learn how to make it switch each time. I only want one popup or popunder per page, but i don't want to define it one each page. Like an order of Pop-up traffic popup on the first page, then then when they go to another page on my site, it shows the popunder for popuptraffic, then another page, goes to the other popupsponsor popup, and so on. Then once done, i can chose if it should repeat or wait a certain time interval.
It is a basic if and else statments looped, but i know c++, not javascript. thanks...
I have this one currently, and it displays both popup and under from popupsponsor at the same time, then waits 12 hours until it does it again.
<script language=Javascript">
<!-- Pop-up Traffic - 12 hours
if (document.cookie.indexOf("popuptrafficbehind") == -1) {
var expdate = new Date((new Date()).getTime() + 43200000);
document.cookie="popuptrafficbehind=general; expires=" + expdate.toGMTString() + "; path=/;";
document.write("<SCRIPT LANGUAGE=\"JavaScript\"src=\"http://www.popuptraffic.com/assign.php?l=USERNAME&mode=behind\"></script>");
document.write("<SCRIPT LANGUAGE=\"JavaScript\"src=\"http://www.popuptraffic.com/assign.php?l=USERNAME\"></script>");
}
//-->
</script>
I need an advanced popup script. I have an account at popuptraffic and one at popupsponsor. I use both popups and popunders, and i need to learn how to make it switch each time. I only want one popup or popunder per page, but i don't want to define it one each page. Like an order of Pop-up traffic popup on the first page, then then when they go to another page on my site, it shows the popunder for popuptraffic, then another page, goes to the other popupsponsor popup, and so on. Then once done, i can chose if it should repeat or wait a certain time interval.
It is a basic if and else statments looped, but i know c++, not javascript. thanks...
I have this one currently, and it displays both popup and under from popupsponsor at the same time, then waits 12 hours until it does it again.
<script language=Javascript">
<!-- Pop-up Traffic - 12 hours
if (document.cookie.indexOf("popuptrafficbehind") == -1) {
var expdate = new Date((new Date()).getTime() + 43200000);
document.cookie="popuptrafficbehind=general; expires=" + expdate.toGMTString() + "; path=/;";
document.write("<SCRIPT LANGUAGE=\"JavaScript\"src=\"http://www.popuptraffic.com/assign.php?l=USERNAME&mode=behind\"></script>");
document.write("<SCRIPT LANGUAGE=\"JavaScript\"src=\"http://www.popuptraffic.com/assign.php?l=USERNAME\"></script>");
}
//-->
</script>