Foros del Web » Creando para Internet » HTML »

Código html leyenda según día y horario, quiero agregar imágenes

Estas en el tema de Código html leyenda según día y horario, quiero agregar imágenes en el foro de HTML en Foros del Web. Hola, tengo un código que funciona 10 puntos para mostrar una leyenda según la hora y el día de la semana. Ahora para lograr una ...
  #1 (permalink)  
Antiguo 04/03/2015, 06:46
 
Fecha de Ingreso: marzo-2015
Ubicación: San Luis
Mensajes: 7
Antigüedad: 9 años, 1 mes
Puntos: 0
Código html leyenda según día y horario, quiero agregar imágenes

Hola, tengo un código que funciona 10 puntos para mostrar una leyenda según la hora y el día de la semana. Ahora para lograr una grilla más atractiva quiero anexarle imágenes a cada leyenda.

Esta es la pregunta:

Cómo lo hago para agregar una imagen a cada uno de las leyendas?

Acá va el Código javascript que me funciona con texto.


Gracias....

<script language="javascript">
document.write("<div align='' style='font:Bold 12px ARIAL; color:ffffff'>")
function mensajes(){
var txthello="";
var now = new Date();
var day = now.getDay();
var hours = now.getHours();

if(day == 5){
if ((hours>=0) && (hours<1)) {txthello="AHORA - 13/24 <br/> A la 1.00 Hs - LA VIUDA JOVEN";}
else if ((hours>=1) && (hours<2)) {txthello="AHORA - LA VIUDA JOVEN <br/> A Las 2.00 Hs - PRIMERA FILA";}
else if ((hours>=2) && (hours<3)) {txthello="A las 2.00 Hs - PRIMERA FILA <br/> A Las 3.00 Hs - 7 VUELOS";}
else if ((hours>=3) && (hours<4)) {txthello="AHORA - 7 VUELOS <br/> A Las 4.00 Hs - LOS SONICOS";}
else if ((hours>=4) && (hours<5)) {txthello="AHORA - LOS SONICOS <br/> A las 5.00 Hs - CUCHILLOS";}
else if ((hours>=5) && (hours<6)) {txthello="A las 5.00 Hs - CUCHILLOS <br/> A las 5.30 Hs - TECNOSCOPIO";}
else if ((hours>=6) && (hours<9)) {txthello="AHORA - AGENDA DIRECTA <br/> A las 9.00 Hs - UNA BUENA MAÑANA";}
else if ((hours>=9) && (hours<12)) {txthello="AHORA - UNA BUENA MAÑANA <br/> A las 12.00 Hs - BACKYARDIGAN";}
else if ((hours>=12) && (hours<13)) {txthello="A las 12.00 Hs - BACKYARDIGAN <br/> A las 12.30 Hs - EXPERIMENTO AL ATAQUE";}
else if ((hours>=13) && (hours<14)) {txthello="AHORA - NOTICIAS 13, 1° EDICIÓN <br/> A las 14.00 Hs - LA VIUDA JOVEN";}
else if ((hours>=14) && (hours<15)) {txthello="AHORA - LA VIUDA JOVEN <br/> A las 15.00 Hs - CONTAME CÓMO ESTAS";}
else if ((hours>=15) && (hours<18)) {txthello="AHORA - CONTAME CÓMO ESTAS <br/> A las 18.00 Hs -EXPERIMENTO AL ATAQUE";}
else if ((hours>=18) && (hours<19)) {txthello="A las 18.00 Hs - EXPERIMENTO AL ATAQUE <br/> A las 18.30 Hs - EN TUS ZAPATOS";}
else if ((hours>=19) && (hours<20)) {txthello="A las 19.00 Hs - PEQUEÑAS PATRIAS <br/> A las 19.30 Hs - LA PATRIA DEPORTIVA";}
else if ((hours>=20) && (hours<21)) {txthello="AHORA - NOTICIAS 13, ED. CENTRAL <br/> A las 21.00 Hs - LOS SÓNICOS";}
else if ((hours>=21) && (hours<22)) {txthello="AHORA - LOS SÓNICOS <br/> A las 22.00 Hs - FRÁGILES";}
else if ((hours>=22) && (hours<23)) {txthello="AHORA - FRÁGILES <br/> A las 23.30 Hs - 13/24 SAN LUIS";}
else if ((hours>=23) && (hours<0)) {txthello="A las 23.30 Hs - 13/24 <br/> A las 00.30 Hs - CINE, ESTRENOS";}
}



document.write(txthello + '<br/>');
}


mensajes();
</script>

Última edición por sanluisbinario; 04/03/2015 a las 07:12

Etiquetas: horario, javascript, quiero, según
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:43.