How can I go about actioning a FancyBox popup that notifies new users of a quick sign-up button (or whatever is chosen) like on Digg.com ... and as with Digg just one time. I really have no experience with cookies but already have FancyBox running in other parts of the website, so the basis is already there. I require the popup to appear on page load. Any pointers very happily received!
相关问题
- Multiple Django sites on the same domain - CSRF fa
- Save html in cookie
- WPF ComboBox with custom dropdown width
- How to set session lifetime as infinite
- Multiple cookies with same name
相关文章
- fetch: Getting cookies from fetch response
- How do I send cookies with request when testing Fl
- Is ![removed] reliable?
- How does a browser handle cookie with no path and
- Converting cookie string into Python dict
- How to delete cookie
- Deleting cookies in postman programmatically
- Setting cookie using header(“Set-cookie”) vs setco
You can find a code example here https://stackoverflow.com/a/8305703/1055987 including the link to the jQuery Cookie plugin.
My eventual solution uses the Reveal Modal plugin (click here) to trigger inline to 'fire' on page load using the modified following code for the popup to be displayed only once every three days. Remember also to load jquery.cookie.js and then add the following code:
Using something other than FancyBox was the answer to the original question as it seemed there was a conflict somewhere, so using Reveal made the two functions completely separate. I should also note that the .css contents from the Reveal download were added to our site's stylesheet.
Hopefully that will help someone else out.