开发者

Div Appear After 5 Seconds Jquery

开发者 https://www.devze.com 2023-01-05 03:08 出处:网络
I\'m having problems getting a div to appear using jquery after 5 seconds. right now I was using $(document).ready(function() {

I'm having problems getting a div to appear using jquery after 5 seconds.

right now I was using

$(document).ready(function() { $("#message").delay(delay).fadeIn(5000); });

But it's not working (#message being the name of the div serounding the content I'd like to show)

If anyone could help me get it working that would be gre开发者_高级运维at.

Thanks


Is there a delay variable defined that you are passing into the delay function? What you pass to delay should be how long to wait until doing the next function. I'd think you'd want something like this:

$('#message').delay(5000).fadeIn(5000);


Why is it not working? Don't forget to set the delay!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号