Loading message while a page is loading?
Hello my friends !
Is it possible to "Only" display a loading message and hide all page's elements and graphics until the page is fully loaded. then loading message disappear and the content fades in!?
I can't think of it's logic more than this one logic which doesn't work properly !
- <script type="text/javascript>"
- $(function(){
- // this is a tab for example!
- $(".HomeTab").click(function(){
- $("#LoadingMsg").show(1000);
- $("body").load('home.php', function(){
- $("#LoadingMsg").hide(1000);
- });
- });
- });
- </script>
This doesn't do the job! for me!
Any suggestions or help is greatly appreciated!