window.onload = function () { // FUNCION PARA EL DOLAR // var cotizaciones = document.getElementById('cotizaciones-dolar'); var numeros = cotizaciones.getElementsByTagName('span'); var imagenes = ''; for(x=0;x'; } } numeros[x].innerHTML = imagenes; imagenes = ''; } // FUNCION PARA EL RESTO // var cotizaciones = document.getElementById('cotizaciones-otras'); var numeros = cotizaciones.getElementsByTagName('span'); var imagenes = ''; for(x=0;x'; } } numeros[x].innerHTML = imagenes; imagenes = ''; } };