Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6903623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:56:55+00:00 2026-05-27T07:56:55+00:00

im trying to make a lightbox popup that triggers is the user has not

  • 0

im trying to make a lightbox popup that triggers is the user has not been to the site before telling them about a offer … like the one here http://www.made.com/ (if youve been there befor you need to clear your cookies )

any way id like to do it using the fancybox lightbox as im using it on my page else where already, i was trying to figure it out from here http://www.veign.com/blog/2008/05/22/create-a-one-time-popup-using-jquery/ but the link to the jquery cookie libary is down.

any idea on where i can find a replacment / is this the best way to do it ?

regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:56:56+00:00Added an answer on May 27, 2026 at 7:56 am

    Using the utility functions at the bottom of this page: http://www.quirksmode.org/js/cookies.html (createCookie and readCookie)

    $(document).ready(function(){
      if (readCookie("hasVisitedBefore") == null){
         //code to create popup here
      }
      createCookie("hasVisitedBefore", "true");
    });
    

    This will set a cookie using javascript when the user loads the page. If the cookie wasn’t set when they arrived then you can launch your normal popup code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying make an entity with doctrine that has three associations with other entities
I'm trying to customize a lightbox script (prototype) to make it resize images that
I'm trying make a login window where a user is prompted to enter their
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to make a small countdown timer in my app but it's not working.
Trying to make an xna game, where the user needs to tap to stop
I'm trying to make a fade in and out with my lightbox based on
trying to make 5 curl childs for curl handler and defining them, but can't
Trying to make a regex that can handle input like either: Beverly Hills, CA
I'm trying to make this jquery plugin => http://leandrovieira.com/projects/jquery/lightbox/ work with multiple galleries on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.