Image not showing in Chrome
Posted
by dmr
on Stack Overflow
See other posts from Stack Overflow
or by dmr
Published on 2010-06-02T16:39:20Z
Indexed on
2010/06/02
16:44 UTC
Read the original article
Hit count: 221
JavaScript
|google-chrome
I am attempting to set the source of an image. The image shows up correctly in IE and Firefox, but it doesn't show in Chrome.
//image is set to 1 or 2
document.getElementById("loadImg").src = "./images/loading" + image + ".gif";
What do I have to change for this to work in Chrome?
© Stack Overflow or respective owner