1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
| <!DOCTYPE html>
<html lang="fr">
<head>
<title>Jeu de l'Oie</title>
<style type="text/css">
div {
background-image: url("image/plateau.jpg");
height: 950px;
width: 887px;
text-align: center;
margin-left: auto;
margin-right: auto;
display: flex;
align-items: center;
justify-content: center;
}
#square
{
position:absolute;
height:40px;
width:40px;
/* left: 800px;*/
/* top: 350px;*/
background: #000;
background-color:red;
border: 3px rgb(136, 219, 219) solid;
cursor: pointer;
}
.center {
margin-left: auto;
margin-right: auto;
}
</style>
<script type="text/javascript">
/*La Charte popup.*/
var windowObjectReference = null; // variable globale
function openChartePopup() {
if (windowObjectReference == null || windowObjectReference.closed) {
windowObjectReference = window.open(
"charte.html","CharteWindowName","popup","_blank", 'width=100, height=100'
);
/*La Charte sera affichée par-dessus les éventuelles autres fenêtres.*/
} else {
windowObjectReference.focus();
/* sinon la référence existe et la fenêtre n'est pas fermée on peut donc l'amener devant avec la méthode focus()sans avoir à recréer la fenêtre ou à recharger la ressource référencée. */
}
}
</script>
<script src="script.js" charset="utf-8"></script>
</head>
<body>
<table class="center"><tbody>
<tr>
<td><div id="square" onmousedown="on_mouse_down_square(event)">pion</div>
</td>
</tr>
<tr>
<td>
<div class="dices">
<a href="charte.html"
target="CharteWindowName"
onclick="openChartePopup(); return false;"
title="popup d'affichage de la Charte du Jeu de l'Oie"
>. Charte du Jeu de l'Oie .</a>
<img class="newdes" id="des0" src="./imagedes/dice1.png" alt="dès1" data-random="">
<img class="newdes" id="des1" src="./imagedes/dice1.png" alt="dès1" data-random="">
<button type="button" class="btn" onClick="rollTheDice()">Lancer les dés</button>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html> |
Partager