Hi,
I have this variable:
$name = $user->online[$i]['name'];
It shows all the users online (excample John, Max and Jack)
Now I have this part of javascript:
dd.elements.<?php echo $name; ?>.moveTo(xPos, yPos);
This gives a error when there are more than 1 user online.
I need a result like:
dd.elements.John.moveTo(xPos, yPos);
dd.elements.Max.moveTo(xPos, yPos);
dd.elements.Jack.moveTo(xPos, yPos);
How do I do this?



Reply With Quote

Bookmarks