im trying to add an image to a hidden div
i cant just put the img src = because its a gif and it shows the image but it does not display the motion of the gif image just the still image so i thought if i added it to the js it would show the motion
so can i do this
Code:
function showhdiv()
{
var fval = document.FrmPicture.fileupload.value;
if (fval)
{
var img = document.createElement('img');
img.src = "/images/loader.gif";
img.width = 32;
img.height = 32;
document.getElementById("vidstatus").style.display = "inline";
document.body.appendChild( img );
}
}//close function showhdiv
what i want is for the inline text to show, and then the gif image after that
the problem again is that if i do this outside the div
Code:
<img src="/images/loader.gif" border="0" alt="" />
the motion gif shows fine, but inside the div it just shows the still image (no motion) and i dont know why.
I have attached the loader.gif image for you to see