Jump to content
MakeWebGames

Recommended Posts

Posted

Well the easiest is to have a div with an image inside, and show it while you start the Ajax call, and hide it when it's done. You could do it without the div, but I would personally still use a div around it.

Posted
Well the easiest is to have a div with an image inside, and show it while you start the Ajax call, and hide it when it's done. You could do it without the div, but I would personally still use a div around it.

I'm looking for some sort of delay in the request, because my AJAX loads so fast you can only see the image for half a second. Mainly for effect, like a 3000ms delay would be quick and still achieve my effect

Posted

Why on earth would you want to make visitors wait an extra 3 seconds just to see an image while they wait?

You can use setTimeout to have functions run after a certain time.

Posted
Why on earth would you want to make visitors wait an extra 3 seconds just to see an image while they wait?

You can use setTimeout to have functions run after a certain time.

As Zeggy said why in hell would I as a user wanna wait 3 seconds just to see a little image? When there would be no point?

Posted

Since your using jquery. How come you have not come accross the $.delay() function yet?

It's simple.

$("#chatFeature").delay(3000).fadeIn(600);

$("#imageBar").delay(3000).fadeOut(600);

That way, after 3000ms as you wanted, they will both fade(out/in).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...