How do I make the Pop-up appear just once per visitor?

Posted on 2009-02-18
Last Modified: 2013-11-19
I have setup a dhtml (a DIV) pop-up on my site. I want it to appear just once to each visitor (unless s/he clears cookies). I know this can be done using cookies, but dont know anything about setting them up. Ideally, if you could provide me with a code snippet to achieve this, it will be a great help.
Question by:Samko1
    LVL 41

    Accepted Solution

    Well here is some sample code that tests if a cookie exists, and if not creates one.

    Author Comment

    Thanks HonorGod!

    LVL 41

    Expert Comment

    You are very welcome.  Thank you for the grade and points.  Sorry that you didn't feel it warranted a better grade.

    Good luck & have a great day

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
    Viewers will learn how to use the Hootsuite Dashboard.
    XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now