Skip to content

Instantly share code, notes, and snippets.

@andrerocker
Created November 7, 2010 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrerocker/666339 to your computer and use it in GitHub Desktop.
Save andrerocker/666339 to your computer and use it in GitHub Desktop.
Alteração Dinamica de Imagens, Hack para IE6.
function carregarImagem(url, objImgDestino)
{
var img = new Image();
img.onload = function () {
objImgDestino.src=obj.src;
}
img.src = url;
}
var imagemAtualizar = document.getElementById("display");
carregarImagem("novaImagem.jpg", imagemAtualizar);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment