Ir a la navegación
Ir a la búsqueda
Busca en cnbGuatemala con Google
1979 bytes añadidos
, hace 6 años
Línea 1037: |
Línea 1037: |
| lonight = days - (9 * (Math.floor((days - 1) / 9))); | | lonight = days - (9 * (Math.floor((days - 1) / 9))); |
| date.lon.value = lonight; | | date.lon.value = lonight; |
| + | |
| + | <!------ noche ------> |
| + | if (lonight == 1) { |
| + | date.lon.value = "1"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c1/Glifo_G1.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 2) { |
| + | date.lon.value = "2"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/54/Glifo_G2.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 3) { |
| + | date.lon.value = "3"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/70/Glifo_G3.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 4) { |
| + | date.lon.value = "4"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/7b/Glifo_G4.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 5) { |
| + | date.lon.value = "5"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/37/Glifo_G5.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 6) { |
| + | date.lon.value = "6"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/1/12/Glifo_G6.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 7) { |
| + | date.lon.value = "7"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fa/Glifo_G7.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 8) { |
| + | date.lon.value = "8"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_G8.gif" width="50px">'; |
| + | } |
| + | else if (lonight == 9) { |
| + | date.lon.value = "9"; |
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/7a/Glifo_G9.gif" width="50px">'; |
| + | } |
| + | else if (kin > 9) date.lon.value = "error"; |
| | | |
| | | |