3d chat
Heej jeg håber at der er en der en meget god til JavaScript får jeg er igang med at lave en 3d chat men når man logger ind og starter chatten så kommer men på vært sit rykkesystem.så jeg håber der en en der kan hjælpe mig men at få gjort sådan at når man loggerin så kommer man på sammen rykkesystem og kan se hinanden og den slaks i stedet for at være på vær sin chat.
Her er kode på Rykkesystemet:
<?
session_start();
if (session_is_registered("brugernavn") AND ("kodeord")) {
include("login/mysql/mysql.php.php");
$hent = mysql_query("SELECT * FROM bruger WHERE brugernavn = '$_SESSION[brugernavn]'") or die(mysql_error());
$vis = mysql_fetch_array($hent);
?>
<? include("login/mysql/mysql.php"); ?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#board {
border: 0px solid #000;
border-collapse: collapse;
}
#board td {
width: 60px;
height: 75px;
border:0px solid #AAA;
text-align: center;
vertical-align: middle;
cursor: pointer;
}
</style>
<?
include("db.php");
?>
<script type="text/javascript">
var last_field = null;
function moveElement(idx) {
obj = document.getElementById(idx);
if (last_field != null) last_field.innerHTML = ' ';
document.getElementById(idx).innerHTML = '<div><img src="gfx/Figur/Figur ny.gif"><br><br></div>';
last_field = obj;
}
</script>
</head>
<body bgcolor="#666666">
<table id="board" border="0" background="gfx/Rum/Redationen.jpg">
<tr>
<td id="1_1" onclick="moveElement(this.id)"> </td>
<td id="1_2" onclick="moveElement(this.id)"> </td>
<td id="1_3" onclick="moveElement(this.id)"> </td>
<td id="1_4" onclick="moveElement(this.id)"> </td>
<td id="1_5" onclick="moveElement(this.id)"> </td>
<td id="1_6" onclick="moveElement(this.id)"> </td>
<td id="1_7" onclick="moveElement(this.id)"> </td>
<td id="1_8" onclick="moveElement(this.id)"> </td>
</tr><tr>
<td id="2_1" onclick="moveElement(this.id)"> </td>
<td id="2_2" onclick="moveElement(this.id)"> </td>
<td id="2_3" onclick="moveElement(this.id)"> </td>
<td id="2_4" onclick="moveElement(this.id)"> </td>
<td id="2_5" onclick="moveElement(this.id)"> </td>
<td id="2_6" onclick="moveElement(this.id)"> </td>
<td id="2_7" onclick="moveElement(this.id)"> </td>
<td id="2_8" onclick="moveElement(this.id)"> </td>
</tr><tr>
<td id="3_1" onclick="moveElement(this.id)"> </td>
<td id="3_2" onclick="moveElement(this.id)"> </td>
<td id="3_3" onclick="moveElement(this.id)"> </td>
<td id="3_4" onclick="moveElement(this.id)"> </td>
<td id="3_5" onclick="moveElement(this.id)"> </td>
<td id="3_6" onclick="moveElement(this.id)"> </td>
<td id="3_7" onclick="moveElement(this.id)"> </td>
<td id="3_8" onclick="moveElement(this.id)"> </td>
</tr><tr>
<td id="4_1" onclick="moveElement(this.id)"> </td>
<td id="4_2" onclick="moveElement(this.id)"> </td>
<td id="4_3" onclick="moveElement(this.id)"> </td>
<td id="4_4" onclick="moveElement(this.id)"> </td>
<td id="4_5" onclick="moveElement(this.id)"> </td>
<td id="4_6" onclick="moveElement(this.id)"> </td>
<td id="4_7" onclick="moveElement(this.id)"> </td>
<td id="4_8" onclick="moveElement(this.id)"> </td>
</tr><tr>
<td id="5_1" onclick="moveElement(this.id)"> </td>
<td id="5_2" onclick="moveElement(this.id)"> </td>
<td id="5_3" onclick="moveElement(this.id)"> </td>
<td id="5_4" onclick="moveElement(this.id)"> </td>
<td id="5_5" onclick="moveElement(this.id)"> </td>
<td id="5_6" onclick="moveElement(this.id)"> </td>
<td id="5_7" onclick="moveElement(this.id)"> </td>
<td id="5_8" onclick="moveElement(this.id)"> </td>
</tr>
</table>
<script type="text/javascript">moveElement('1_1');</script>
</body>
</html>
pleas hjælp mig hurtist mulidt ;D takker
