en segundos en vez de new date()
Publicado por xra (70 intervenciones) el 08/03/2021 15:05:29
Es posible hacerlo en segundos en vez de con fecha new Date() ?
la idea es que a[""] sean los segundos y '<b> hola</b>' lo que document.wirte muestra
la idea es que a[""] sean los segundos y '<b> hola</b>' lo que document.wirte muestra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script>
var today_obj=new Date()
var temadiario=today_obj.getDate()
var a=new Array()
var temas='<b></b><br>'
a[1]='<b> hola</b>'
a[2]='<b> adios</b>'
a[3]='<b> hola</b>'
a[4]='<b> adios</b>'
............
.......
.....
a[30]='<b> hola</b>'
a[31]='<b> adios</b>'
document.write(temas)
document.write(a[temadiario])
</script>
Valora esta pregunta


0