Adding extra functions to an image's onmouseout attribute
<p>I have this:</p>

<pre><code>&lt;img border="0" onmouseout="hidetips();" onmouseover="showtips();" src="image.gif"&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function() {
    $("img").each(function(index){
        $(this).attr("onmouseout", "hidetips();newfunction();");
    });
});
&lt;/script&gt;
</code></pre>

<p>I tried above but it is not working, anyone one know how to add extra newfunction() at behind on the onmouseout attribute?</p>
