Location: PHPKode > projects > Psichat > psichat/chat/raumdia.php
<?php
$nick = $HTTP_GET_VARS['nick'];
$sid = $HTTP_GET_VARS['sid'];
$raum = $HTTP_GET_VARS['raum'];
$rnr = $HTTP_GET_VARS['rnr'];
?>

<html>
<head><title>Raum <?php echo $raum; ?></title>
<script type="text/javascript"><!--

var autoscroll = 1;
var maxhoehe = 0;
var ypos;

function moves()
{
	try
	{
		if(autoscroll == 1)
			self.rchat.scrollBy(0, 3);

		if(self.rchat.document.body.scrollTop)
			ypos = self.rchat.document.body.scrollTop;
		else
			ypos = self.rchat.pageYOffset;

		if(ypos > maxhoehe)
			maxhoehe = ypos;

		if(ypos < maxhoehe-30)
			autoscroll = 0;
		else
			autoscroll = 1;

	} catch(er) {}
	setTimeout("moves()", 10);
}
moves();

function neuAufbau()
{
	maxhoehe = 0;
}
window.onresize = neuAufbau;

//--></script>

<frameset rows="*,35" border="0" frameborder="0" framespacing="0">
	<frameset cols="103,*" border="3" frameborder="1" framespacing="2">
		<frame scrolling="auto" src="about:blank" name="rbenutz">
		<frame scrolling="auto" src="rchat.php<?php echo '?raum='.$raum.'&nick='.$nick.'&sid='.$sid; ?>" name="rchat">
	</frameset>
	<frameset cols="*,100%" border="0" frameborder="0" framespacing="0">
		<frame scrolling="NO" src="rexit.php<?php echo '?raum='.$raum.'&nick='.$nick.'&sid='.$sid.'&rnr='.$rnr; ?>" name = "rexit" marginheight="1" noresize>

			<frameset cols="100%,*" border="0" frameborder="0" framespacing="0">
				<frame scrolling="no" src="about:blank" name = "reingabe" marginheight="1" noresize>
				<frame scrolling="NO" src="about:blank" name = "rsenden" marginheight="1" noresize>
			</frameset>

	</frameset>
</frameset>

</head>
</html>
Return current item: Psichat