I'm now doing something like :

```
$img.hover(function(){$(this).attr('src','1.jpg')},function(){$(this).attr('src','2.jpg')});

```

Which is not smooth,because it takes quite some time to load an image.