How come I can't do this?
if($('.element').mouseover() == true)
{
}
else
{
}
I want to know when the mosue is over a element if isn't do something else.
Here is the full code that now works. I got rid of the if statement...
$('.product_image').hover(function(){
var image = $(this).attr('class');
image = '.' + image.substring(14);
$(image).fadeIn();
});
$('.product_disc').mouseleave(function(){
$('.product_disc').fadeOut();
});