CODE
p.map
{ position:absolute;
left:20%;
top:20%;
width:70%;
height:70%;
background-image: url(grass.jpg);
background-repeat: repeat; }
{ position:absolute;
left:20%;
top:20%;
width:70%;
height:70%;
background-image: url(grass.jpg);
background-repeat: repeat; }
An object(another image) appears in a certain position depending on GET vars
CODE
<p class="map"><?php
$x=$_GET['x'];$y=$_GET['y'];
$x*=74;
$y*=57;
echo "<div style='position:absolute;top:".$y."px;
left:".$x."px;'><img src='file:\\C:\wamp\www\Game\pic\mark.jpg'></div>";
?></p>
$x=$_GET['x'];$y=$_GET['y'];
$x*=74;
$y*=57;
echo "<div style='position:absolute;top:".$y."px;
left:".$x."px;'><img src='file:\\C:\wamp\www\Game\pic\mark.jpg'></div>";
?></p>
The position of the pic comes outside the map, whats the code so that that style coordination is relative to map, meaning 0px,0px are at top left of map box.


