I\'m looking for code that makes a div appear after a certain amount of time on a site. Here\'s the sort of thing I\'m talking about:
相关标签:
You can do this with very little code in jQuery 1.4+ using .delay(), like this:
$(function() { $(".secretpopout").delay(120000).fadeIn(); });
This would show it after 2 minutes, just give it some CSS so it's hidden initially:
.secretpopout { display: none; }