Fading image inside a div
<p>I am trying to get it so when the mouse moves over the div it fades the image inside</p>

<pre><code>function clickimage($imageid){      
$("#image_"+imageid).hover(function(){
$(this).fadeTo("slow", 1.0);
},function(){        
$(this).fadeTo("slow", 0.6);
});
}

&lt;div id='images_$imageid'&gt;
&lt;a href='?tg=photos&amp;photo=$imageid' onmouseover=\"javascript:clickimage('$imageid')\"&gt;
&lt;img src='users/$ptgid/images/$iimg' width='100' height='100'/&gt;
&lt;/a&gt;
&lt;/div&gt;
</code></pre>
