Damir
Damir

Reputation: 56199

How to create loading popup which stay 5 seconds

Can somebody help me how to create on function loading() ( I have<div id="l" onclick="loading"></div>) to show popup with loading gif for 5 seconds (like http://www.queness.com/resources/html/modal/jquery-modal-window.html Simple Modal Window

Upvotes: 1

Views: 510

Answers (2)

kleinohad
kleinohad

Reputation: 5912

You need to look into overlays: http://flowplayer.org/tools/overlay/index.html

Upvotes: 1

Gedrox
Gedrox

Reputation: 3612

Try

window.setTimeout(function(){window.close()}, 5000);

Upvotes: 3

Related Questions