Delay pop-up for 10 seconds, only pop up once
问题 Hi I\'m using the fancybox inline pop-up to to alert a view to a promotion. The code I\'m using for this is: $(document).ready(function() { $(\"#various1\").fancybox(); }); How would I modify this so it automaticly popped up after, say, 20 seconds? But once it\'s been closed it schouldn\'t pop up again. 回答1: Actually, none of the solutions posted previously work in real life, why? because the line: $("#various1").fancybox(); doesn't trigger fancybox, it just binds fancybox to the selector