Avatar billede caber Nybegynder
04. juli 2006 - 20:05

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 = '&nbsp;';
    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)">&nbsp;</td>
        <td id="1_2" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="1_3" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="1_4" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="1_5" onclick="moveElement(this.id)">&nbsp;</td>   
        <td id="1_6" onclick="moveElement(this.id)">&nbsp;</td>   
        <td id="1_7" onclick="moveElement(this.id)">&nbsp;</td>   
        <td id="1_8" onclick="moveElement(this.id)">&nbsp;</td>   
    </tr><tr>
        <td id="2_1" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="2_2" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="2_3" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="2_4" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="2_5" onclick="moveElement(this.id)">&nbsp;</td>   
        <td id="2_6" onclick="moveElement(this.id)">&nbsp;</td>   
        <td id="2_7" onclick="moveElement(this.id)">&nbsp;</td>   
        <td id="2_8" onclick="moveElement(this.id)">&nbsp;</td>   
    </tr><tr>
        <td id="3_1" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="3_2" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="3_3" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="3_4" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="3_5" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="3_6" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="3_7" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="3_8" onclick="moveElement(this.id)">&nbsp;</td>
    </tr><tr>
        <td id="4_1" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="4_2" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="4_3" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="4_4" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="4_5" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="4_6" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="4_7" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="4_8" onclick="moveElement(this.id)">&nbsp;</td>
    </tr><tr>
        <td id="5_1" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="5_2" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="5_3" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="5_4" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="5_5" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="5_6" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="5_7" onclick="moveElement(this.id)">&nbsp;</td>
        <td id="5_8" onclick="moveElement(this.id)">&nbsp;</td>
    </tr>
</table>
<script type="text/javascript">moveElement('1_1');</script>
</body>
</html>


pleas hjælp mig hurtist mulidt ;D takker
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester