Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/09/2014, 16:36
edmradio
 
Fecha de Ingreso: septiembre-2014
Mensajes: 3
Antigüedad: 10 años, 5 meses
Puntos: 0
como arreglar este codigo para una imagen

Hola

Nose si se habra echo un post anterior para esto, si es asi lo siento, solo necesito vuestra ayuda ya que estoy ya desesperado para encontrar la solucion a este codigo

Mirad se trata de un codigo que me muestra el texto del programa que hay en directo ese momento ( si ven el ejemplo es el que pone 'In The Mix' ) pero lo que quiero hacer es que en vez de mostrar un texto me sacara una imagen y nose como hacerlo

¿Me pueden ayudar?

Aqui es dejo el codigo

/* NOT CURRENTLY USED
var thedate = new Date();
var dayofweek = thedate.getDay();
var hourofday = thedate.getHours();

var GMT = new Date().getTimezoneOffset();
var offsetGMT = -5 * new Date().getTimezoneOffset()/60;
*/

// Sun=0 1 2 3 4 5 Sat=6
var DayOfWeek = new Array('Weekend','Monday','Tuesday','Wednesday','Th ursday','Friday','Weekend');

var NoShow = 'Geen uitzending<br />op RadioXD';
var DH = new Array (7);
for (d=0; d<7; d++) {
DH[d] = new Array (24);
for (h=0; h<24; h++) { DH[d][h] = ''; }
}

DH[0][0] = 'In The Mix';
DH[0][1] = 'In The Mix';
DH[0][2] = 'In The Mix';
DH[0][3] = 'Formula Energy';


function OnNow() {
var thedate = new Date();
var dayofweek = thedate.getDay();
var hourofday = thedate.getHours();
// alert(dayofweek+':'+hourofday+'<br />'+DH[dayofweek][hourofday]);
var showOn = DH[dayofweek][hourofday];
if (showOn == '') { showOn = thedate+'NON-stop muziek!'; }
alert(showOn);
}

function NowON() {
var thedate = new Date();
var dayofweek = thedate.getDay();
var hourofday = thedate.getHours();
var showOn = DH[dayofweek][hourofday];
if (showOn == '') { showOn = thedate+'<p />NON-Stop muziek!'; }
document.getElementById('NowOn').innerHTML = showOn;
}

Gracias de antemano