Hi, I write this code, but does not work as I want.
When you open a page you see only a logo in the middle of the screen and then dissapears slowly (is the part I write and it works), but then I want the index appears slowly, this is the part I can not do. I had prrobed with show() and append() but does not works as I expect.
What I am doing wrong?
Here is my code:
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
- <script>
- $(document).ready(function() {
-
- $('body').append('<div class="header"><a href="/"><img src="image/blue_minify.png" width="60" height="60" border="0"></a></div>');
-
- $('.header').fadeIn(1000,function(){
- setTimeout("$('.header').fadeOut(1000,function(){$(this).remove()})",1000);
-
- });
- $('.one').show();
- });
-
- </script>
- </head>
- <body>
- <div style="display: none;" class="one" >Hola</div>
- </body>
- </html>
Thanks for your attention.
Sandy