Bonjour,
j'aimerai faire un jeu avec 5 niveaux, mais pour l'instant j'ai cré une page html pour chaque niveau
Voici par exemple, la page "game1.html"
<html>
<head>
<script language="Javascript" src="game.js"></script>
</head>
<body onLoad=depart(1) bgcolor="#CCFFFF">
Niveau 1<br>
<a href='game2.html'>Niveau 2</a><br>
<a href='game3.html'>Niveau 3</a><br>
<a href='game4.html'>Niveau 4</a><br>
<a href='game5.html'>Niveau 5</a><br>
<script type="text/javascript" language="javascript">new Game(1);</script>
</body>
</html>
J'aimerai pouvoir avoir une seul page html et par exemple quand on clique sur "Niveau 2" rester sur "game1.html" mais que ce soit "depart(2) et Game(2)" qui soit exécuter.
Cordialement.