function updateimage(){
$("#fileimg").attr("src","secondimage.jpg");
$('#fileimg').fadeIn('slow');
}
setTimeout(updateimage(), 5000);
This is the code i tried. Its a code to reload the image every 5 seconds. But it doesn’t work. I get this error in IE: Invalid argument
Can y’all help me? Thanks.
2 options:
or use a function: