SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot gymaholic7's Avatar
    Join Date
    May 2001
    Location
    Marietta, GA
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    don't understand 1-time pop-up script

    Hey all!
    I know there have been SO MANY posts about pop-ups here. I've done a search for all them but could never find the direct answer. I wanted to have a script like SP has with their subscription pop-up. How it comes up like once a month. I've found a script that I think I could use but I don't understand it.
    Could anyone help me??
    http://slackerhtml.tripod.com/javasc...ponlyonce.html

    Thanks in advance!
    ~Nicole
    "I don't believe in people I don't know.
    Strangers are just friends I haven't met."
    ~Inspection 12 (Jacksonville natives, wahoo!)

  2. #2
    ********* obeah makeda's Avatar
    Join Date
    Jun 2001
    Location
    rollin' on dubs
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i looked at this very quickly but what it appears to do is set a cookie. each time the user requests this file, the script looks for this cookie. there are a couple of ways to do this. i think the easiest way is when a new user requests your file, have your popup window and give them a cookie that lasts the duration you want. each time they request this file, the script will look for the cookie. if they have your cookie, they don't get the popup. if they don't have the cookie, either because they're a new user or their old cookie expired, popup your window and give them a new cookie.

    for the record, i detest popups.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •