Jquery fade in an image on website load
<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;JQuery Page Loading Effect&lt;/title&gt;
        &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
        &lt;style type="text/css"&gt;
            div.hidden { display: none }
        &lt;/style&gt;
    &lt;/head&gt;
    &lt;script type="text/javascript"&gt;
        $(document).ready(function () {
            $('div').fadeOut(1);
            $('div').removeClass('hidden');
            $('div').fadeIn(1000);
        });
    &lt;/script&gt;
    &lt;body&gt;
        &lt;div class="hidden"&gt;
            &lt;p&gt;This is some text.&lt;/p&gt;
        &lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I took this code from a mate, as I'm not really experienced with JQuery, so this doesn't make sense to me. I was just wondering how I could improve this code so that the text eases in during the load of the web page. Thanks in advance!</p>