Jquery Multiple mouseover

<script type=”text/javascript”>
function showImg() {
$(“img”, this).fadeIn(200);
}
function hideImg() {
$(this).fadeOut(200);
}
$(function(){
$(“.reveal img”).mouseenter(hideImg());
$(“.reveal img”).mouseleave(showImg());
</script>
<div>foo<img src=”img/water.png” /></div>
<div>bar<img src=”img/eye.png” /></div>

Leave a comment