Hallo Community,
habe folgendes Problem und zwar wird die Includierte funktion (JS) nicht in der spiel.php ausgeführt...
PHP
<html>
<head>
<title>Mein Spiel.</title>
</head>
<body bgcolor="#008080">
<script text="text/javascript" src="js/main.js"></script>
<style>
#main_game { position:absolute; width:500px; height:500px; left:50%; top:50%; margin-left:-250px; margin-top:-250px;
border: 0px solid #00FF00;
border-radius:15px;
background-image:url(data/rahmen.png);
background-repeat:no-repeat;}
#anz_geld,
#anz_level,
#anz_respunkte { position:relative; display:inline-block; width:120px; maring-top:13px; margin-left:15px; margin-right:10px;
color:#FFFFFF; font-weight:bold; font-style:italic; }
#cont_anzeigen { position:absolute; width:482px; height:19px; top:10px; left:10px;
border: 0px solid #ffff00;
}
#main_game_inner { position:relative; display:inline-block; left:9px; top:46px; width:482px; height:445px;
border: 0px solid #ffff00; }
#cont_warten { position:absolute; width:100px; height:100px; left:60%; top:45%; margin-left:-150px;
border: 0px solid #ffff00; font-weight:bold; font-style:arial;
}
</style>
<div id="main_game" class="" >
<div id="cont_anzeigen">
<span id="anz_level">Level 1</span>
<span id="anz_geld">100€</span>
<span id="anz_respunkte">500 Exp</span>
</div>
<div id="main_game_inner">
</div>
</div>
<div id="cont_warten">
<img src="data/waiting.gif" style="position:absolute; left:-5%; top:20%;" >
<span>Bitte warten...</span>
</div>
<script>
game_init();
</script>
</body>
</html>
Alles anzeigen