Javascript InnerHTML

function changeImg(){
 var getImg= document.getElementById('idg').innerHTML;
 document.getElementById('idg').innerHTML = '<img src="http://ecx.images-amazon.com/images/I/' + getImg + '">';

}
setTimeout("changeImg()",100)

Posting Komentar

Lebih baru Lebih lama