diff --git b/css/estilos.css a/css/estilos.css new file mode 100644 index 0000000..a9703c0 --- /dev/null +++ a/css/estilos.css @@ -0,0 +1,36 @@ +body { + font-family: cursive; + background: beige; + color: #333; + text-align: center; + top: 0px; +} + +#boton { + vertical-align: middle; +} + +#imagen { + vertical-align: initial; + width: 10%; +} + +#imagen2 { + vertical-align: initial; + width: 10%; +} + +#imagen3 { + vertical-align: initial; + width: 10%; +} + +#imagen4 { + vertical-align: initial; + width: 10%; +} + +#imagen5 { + vertical-align: initial; + width: 10%; +} \ No newline at end of file diff --git b/dados.html a/dados.html new file mode 100644 index 0000000..6bd5269 --- /dev/null +++ a/dados.html @@ -0,0 +1,28 @@ + + + + + + + + document + + + + + + + + + + + + + + +

+ +

+ + + \ No newline at end of file diff --git b/dados.js a/dados.js new file mode 100644 index 0000000..1fd4b51 --- /dev/null +++ a/dados.js @@ -0,0 +1,15 @@ +// window.onload = dados; + + +function dados() { + let misdados = ["imagenes/dado1.png", "imagenes/dado2.png", "imagenes/dado3.png", "imagenes/dado4.png", "imagenes/dado5.png", "imagenes/dado6.png"]; + let indicedados = ["imagen", "imagen2", "imagen3", "imagen4", "imagen5"]; + + for (let index = 0; index < indicedados.length; index++) { + let indice = Math.floor(Math.random() * misdados.length); + document.getElementById(indicedados[index]).src = misdados[indice]; + } + + + +} \ No newline at end of file diff --git b/imagenes/dado1.png a/imagenes/dado1.png new file mode 100644 index 0000000..bdecc3c Binary files /dev/null and a/imagenes/dado1.png differ diff --git b/imagenes/dado2.png a/imagenes/dado2.png new file mode 100644 index 0000000..279f727 Binary files /dev/null and a/imagenes/dado2.png differ diff --git b/imagenes/dado3.png a/imagenes/dado3.png new file mode 100644 index 0000000..ccb4bfa Binary files /dev/null and a/imagenes/dado3.png differ diff --git b/imagenes/dado4.png a/imagenes/dado4.png new file mode 100644 index 0000000..a541bee Binary files /dev/null and a/imagenes/dado4.png differ diff --git b/imagenes/dado5.png a/imagenes/dado5.png new file mode 100644 index 0000000..8d6c8f8 Binary files /dev/null and a/imagenes/dado5.png differ diff --git b/imagenes/dado6.png a/imagenes/dado6.png new file mode 100644 index 0000000..f54e1a1 Binary files /dev/null and a/imagenes/dado6.png differ