简体   繁体   English

如何在身体负载上有一个类似于fancybox的弹出窗口,但如何在重载时不连续加载cookie?

[英]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? 您好,我如何有一个像fancybox这样的弹出框,但是根据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 . 好吧,您可以拥有一个看起来像fancybox的外观 (顺便说一句,我也可以)以及一个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. 因此,您将检查用户是否具有cookie,以及是否未显示fancybox,否则请设置cookie,以便如果同一用户重新加载页面,则不会发生任何奇特的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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