Hi I've got a bit of a problem. For a group project, we are creating a web based game, which involves things moving around on screen etc. I have figured out how to use AJAX to dynamically update everything on the page as and when it changes in our database, but the problem is:
I need to be able to dynamically create CSS
This is because we are using the CSS to "place" each player at a set point on the screen e.g.
#ship_1{
position: absolute;
left: 200px;
top: 200px;
background-image: url('images/ship-blue.jpg');
background-repeat: no-repeat;
background-position: center center;
border: 1px solid black;
height: 35px;
width: 64px;
z-index: 5;
}
I need to add code like this everytime a new player logs in.
Thanks in advance for your help