SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    colorbox JQuery open box on first time load

    Hi there - I've got colourbox to open inline content on page load. {open:true}

    Great. But I want this pop up to only open the first time the page is loaded. It's like the client wants a message on open (using inline content) but once the close click is made and the user returns to the home page, the code should not be executed.

    So - open colourbox inline content on first visit to site.

    Any ideas?

    help appreciated
    Vanrooj

  2. #2
    SitePoint Zealot xzyfer's Avatar
    Join Date
    Mar 2004
    Location
    oz
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    set a cookie the first time you open color box, then add a check for that cookie before opening color box.

    now it should only open once.


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
  •