How do i activate this jquery function when combined with PHP
<p>I would like to apologize at first instant for asking some stupid question(well not the case for me), but i cannot help it out. i must admit i do not know jQuery but i do have the basic understanding of Javascript and i am a dedicated PHP developer. i don't have any problem understanding the HTML or css. when it comes to jquery i lag it and i dont have enough time to learn it because of the deadline i have to meet. </p>

<p>to start with i developed an application using php and purchased a template from themeforest, now it has some nice and beautiful javascript code the problem is i do not know how to make it work. even though it lies right infront of me. here is my code in the login page. where i want to use this jquery</p>

<pre><code>&lt;link rel="stylesheet" type="text/css" href="css/basicblack.css" title="styles5" media="screen" /&gt;
&lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/supersleight.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.example.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.cookie.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/styleswitch.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
/* &lt;![CDATA[ */
    $(document).ready(function(){
            $(".block").fadeIn(1000);                  
            $(".msg-error").fadeIn(1000);
            $(".msg-warning").fadeIn(1000); 
            $('.msg-error').supersleight();
            $('#username').example('Username'); 
            $('#password').example('Password');
    });
/* ]]&gt; */
&lt;/script&gt;
</code></pre>

<p>and now i want to use the fadein effects for the class msg-error and msg-warning in my code, it is not working, here is the combined code with PHP logic which i have used. </p>

<p>although with this i am able to get the desired result like it will show the error if the field is empty or invlalid username and password. but i am unable to use that fadein effect. how do i do that?</p>

<pre><code>&lt;div id="wrap"&gt;
    &lt;?php if(isset($_POST['login'])) { if( empty($_POST['username']) || empty($_POST['password'])) { ?&gt;
    &lt;div class="msg-error"&gt;
    &lt;img src="images/icons/22/messagebox_warning.png" alt=""/&gt;
    &lt;p&gt;Please fill in all of the fields!&lt;/p&gt;
    &lt;/div&gt;       
    &lt;?php } }?&gt; 
       &lt;?php
       if( isset($_POST['login'])) {
       if( !empty($_POST['username']) || $_POST['password']) {
       if( !check_login($_POST['username'], $_POST['password'])) {
       ?&gt;
       &lt;div class="msg-error"&gt;
            &lt;img src="images/icons/22/remove.png" alt=""/&gt;
            &lt;p&gt;Wrong username or password!&lt;/p&gt;
        &lt;/div&gt;
       &lt;?php } } } ?&gt;
</code></pre>
