Do you need to rotate it for each user, or if one user views it and then another user views it, do you want it to rotate as well? If the latter, you'll need a server-side script. Otherwise, it should be doable with cookies and document.write().
You didn't answer my question. Is it okay if two different people visiting your site one after another see the same thing as long as the same person visiting your site multiple times will see the rotating content?
They won't, as the javascript I want to rotate already sets a cookie to make sure the same person does not see the same pop-up more than twice in a 24 hr period.
Ah, so you want to rotate the content for different users. Unfortunately, you can't do that sort of thing with JavaScript. Think about it: JavaScript runs on the client's browser. How can a program running on someone's browser affect what someone else sees in their browser? JavaScript prevents any such effects as a matter of security.
You'll need to look into a server-side script to do this sort of thing.
I have found a server-side script that works great for what I want to do. I have it working right now - Thanks!
I know you cannot execute a server-side script on a cgi produced page, but is there anything I can use on a .cgi page that could rotate the javascript? I doubt there is, but if so let me know.
Bookmarks