Created
November 7, 2010 19:26
-
-
Save andrerocker/666339 to your computer and use it in GitHub Desktop.
Alteração Dinamica de Imagens, Hack para IE6.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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