3d chat..
Hej, har lige fået en 3d chat, eller sådan ligesom 3dbyen.dk, netslottet.com osv.. :)Men har fejl i chat.php.. Her er koden:
<?
if(!$frame) {
?>
<?
include "startscript.php";
?>
<title>Pixelchat</title>
<frameset rows="0%,100%" framespacing="0" border="0" frameborder="0">
<frame src="sider.php?side=frame">
<frame src="chat.php?frame=true" scrolling="no">
</frameset>
<?
exit;
}
session_start();
if(!$username) { ?>
<script LANGUAGE="JavaScript">
alert('Log ind igen.');
window.top.close();
</script>
<?
exit();
}
include "../sql.php";
$select_info = mysql_query("SELECT * FROM users WHERE username = '$username'");
$row_info = mysql_fetch_array($select_info);
if($row_info[onlinechat]=="0") {
$select_info2 = mysql_query("SELECT id FROM rum WHERE owner = '$username'");
if(mysql_num_rows($select_info2)>0) {
$row_info2 = mysql_fetch_array($select_info2);
$rum=$row_info2[id];
} else {
$rum=1;
}
?>
<html>
<head>
<meta name="Generator" content="Stone's WebWriter 4">
<link rel="stylesheet" href="chat.css">
</head>
<body onload="myaction.document.location = 'sider.php?side=skiftrum&rum=<?=$rum?>';" topmargin=0 leftmargin=0 oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<iframe id="myaction" name="myaction" class="float" style="visibility:hidden"></iframe>
<table id="loading" class="float" style="background-color:black;z-index:1;height:100%;width:100%;font-size:30;font-weight:bold;text-align:center;vertical-align:middle">
<tr>
<td id="loadingbox">
</td>
</tr>
</table>
</body>
</html>
<?
exit;
} else {
$rum=$row_info[rum];
}
$select_rum = mysql_query("SELECT id,background,navn,vaerelser FROM rum WHERE id = '$rum'");
$row_rum = mysql_fetch_array($select_rum);
$select_id = mysql_query("SELECT id FROM chat ORDER BY id DESC LIMIT 1");
$row_id = mysql_fetch_array($select_id);
?>
<html>
<head>
<link rel="stylesheet" href="chat.css">
<script>
<?
include "jscript.php";
?>
</script>
</head>
<?
include "loadbar.php";
?>
<body topmargin="0" leftmargin="0" onload="document.all['loadbar'].width='60%';init();load.location='load.php?action=init';countdown();move('<?=$row_info[felt]?>');" background="../gfx/chat/design.gif" ondblclick="return false;" onselectstart="return false">
<table id="loading" class="float" style="background-color:black;z-index:1;height:40;width:60;font-size:30;font-weight:bold;text-align:center;vertical-align:middle;bottom:0;">
<tr>
<table cellspacing="0" cellpadding="0" style="border-style:solid;border-width:1;border-color:white;width:100">
<tr>
<td width="20%" id="loadbar"></td>
</tr>
</table>
</td>
</tr>
</table>
<script>
function writemessages() {
obj = document.getElementById("smartpopup<?=$username?>");
obj.style.left = 10 + ((document.all) ? event.clientX : e.clientX);
obj.style.top = 3 + ((document.all) ? event.clientY : e.clientY);
if (obj.style.display=="none") {
obj.style.display="block";
}
else {
obj.style.display="none";
}
}
</script>
<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value) thefield.value = ""
}
</script>
<?
include "rum.php";
?>
<span id="rightpage" class="float" style="top:0;left:409;width:555;height:374;">
<iframe src ="sider.php?side=main" width=375 height=374 frameborder="0" name="rightpage">
</iframe>
</span>
<script>document.all['loadbar'].width='40%';</script>
<?
include "felt.php";
?>
<img id="felt99" src="../gfx/chat/.gif" class="float" style="left:500;top:500";>
<center>
<?
include "funks.php";
?>
<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value) thefield.value = ""
}
</script>
<span class="float" style="top:374;left:3">
<span id="countdown" class="float" style="bottom:4;right:100000" align="right">Loading</span>
<form name="beskedform" action="sider.php" target="myaction"><input type="hidden" name="side" value="send"><input name="mes" value="Skriv din besked her og tryk enter!" maxlength="90" style="border:1 solid black;background-color:transparent;width:100%;color:white;text-align:center" onFocus="clearText(this)" autocomplete="off"></span>
<iframe id="myaction" name="myaction" class="float" style="visibility:hidden">
<iframe id="load" class="float" style="visibility:hidden">
</body>
</html>