我有一张 j片,使用.,而不是1个 mo和1个 mo,但是它有一点缺陷,即 works工程的湿度,但 mo不成。
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.