tags:

views:

32

answers:

3

Hi, 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 great.

Thanks

+1  A: 

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);
rosscj2533
that worked but it's just not working in ie. Any idea?
Belgin Fish
@Belgin Fish - What version of IE? Is there an error or does nothing happen? Hard to say without seeing your entire code. If you post it I'll check it out.
rosscj2533
hey, ie 8 and just nothings happeningI read somewhere to use $(document).ready(function() { $("#message").delay(5000).fadeIn(500).css('filter', 'none'); });but its still not working, and I would post the code but my buddy says I can't :(
Belgin Fish
Hard to tell without seeing the code. My simple testing example works with my code in IE7. If a page with nothing but that div and that code still doesn't work, I'd remove the `delay(5000)` and see if the `fadeIn` works ok. If that works, I'd remove the `fadeIn` and change some css after the `delay(5000)` and see if that works. Good luck.
rosscj2533
A: 

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

galambalazs
A: 

Can you show the HTML chunk containing the DIV you are trying to show?

KingErroneous