How to do timed pop-ups
The Dark Squirrel of the Sith is stuck on how to do timed popups. Lets say I following code:
<!-- Start of Back Console -->
<script language="JavaScript">
<!--
browserVer = parseInt(navigator.appVersion);
SX=window.open('http://topsites.albinotreefrog.net/out.php?site=1022974165',
'SXback','toolbar=1,location=1,status=1,menubar=1,'+
'scrollbars=1,resizable=1,width=500,height=300');
if( browserVer >= 4) {
window.focus() ;
}
// -->
</script>
<!-- End of Back Console -->
I want this to pop only once every 24 hours per unique visitor, how do I do this?
Cookies! Set a cookie when the window pops, then expires after 24 hours. Then before popping the window checked to see if the cookie has been set... if it has, don't pop the window...
Can you give me an example code?
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks