简体   繁体   中英

How can I have a fancybox-like-popup on body load but with cookie for not continusly loading on reload?

Hello how can I have a popup box like fancybox but to be appeared only one time per visitor based on a cookie?

Thank you for ideas and examples.

Well, you could have fancybox as you seem like it (me too by the way) along with a jquery cookie plugin . So you would check if the user has a cookie and if not show the fancybox, otherwise set the cookie so that if the same user reloads the page there is no fancy stuff happening.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM