Does anyone know how to make a pop-up change with each new visitor. I have created a pop-up that randomly changes but my work wants it to go from lastchance.html to lastchance5.html each time a visitor enters the site.
var expDays = 7; // the number of days the cookie will last
var...
I guess that's the problem. I have made pop-ups, and random pop-ups, but I have never created a pop-up that will alternate per visit and is server-based before. So, I'm not sure which code to write it in. I was hoping for some direction which would be the best to start with.
I need to create a pop up that will alternate pop-ups each time someone visits the site. Meaning, if I have 5 different pop-ups, I need it too start with popup[0], then popup[1] on the next visitor and so on.
var popup=new Array();
popup[0]=new...
So you saying it is in no way possible to create an if statement that says someting like this:
...
if(exited){If(windows.history.go(-1) (exited=1;)
{
{
var popurl="herman-popup.html"
winpops = window.open
popurl, "", "width=390 height=490...
I need to create a popup that only closes when someone exits the window, but not when they push the back button of their browser.
Here is the code I am using.
exited = 0;
function popup() {
if(exited)
{
var popurl="herman-popup.html"
winpops = window.open(popurl, "", "width=390...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.