I have a jquery script to use .hover instead of 1 mouseover and 1 mouseout, however it has a slight flaw, the mouseover bit of the .hover works, but the mouseout doesn't.
the images fade to 100% opacity on mouse over, and change background image, then on mouseout, the image changes back to original image and also it fades out, however the mouseout bit isn't working and the image doesn't swap back to the original and doesn't fade.
$j('#navweb').hover(function(){
$j(".web").each(function(){
var i = parseInt(this.id.substr(2));
$j(this).css('background-image', 'url(back/' + i + 'col.png)').fadeTo('100', 1);},
function(){
$j(this).css('background-image', 'url(back/' + i + '.png)').fadeTo('100', 0.4);
});
});
I reckon its just a small error, but I cant see it anywhere. many thanks to all responders.