Hi,
I have a set of images that for each one I would like to rollover and flicker to a different image for half a second or so, then revert back to the original image, even if the mouse is still over the image (ie there's no mouseout)
setTimeout was suggested but I can't figure out how to use it properly.
There's an example of the page....I'd just like the image that appears on rollover to appear then disappear again quickly.
I've scoured the web for examples and can't find anything...any help would be greatly appreciated.
Thanks, Andrew
Edit:
This is the code I'm currently using for hover images
$(document).ready(function(){
$(function() {
$('.rollover').hover(function() {
var currentImg = $(this).attr('src');
$(this).attr('src', $(this).attr('hover'));
$(this).attr('hover', currentImg);
}, function() {
var currentImg = $(this).attr('src');
$(this).attr('src', $(this).attr('hover'));
$(this).attr('hover', currentImg);
});
});
});