Re: Chat with php

From: Date: Tue, 08 Oct 2002 12:38:40 +0000
Subject: Re: Chat with php
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-119242@lists.php.net to get a copy of this message
I've thought about adding the text on the top, but never found a good way to make that (not with plain HTML, it would require a java-applet to display the stream). Scrolling is quite simple, i use this: <head> <SCRIPT language=JavaScript> <!-- doscroll = true; function Scroller() { if (doscroll != false) { window.scrollBy(0,15); } window.setTimeout("Scroller()",15) } Scroller(); parent.atok = 'CCOFs'; function atok(p1) { parent.atok = p1; } //--> </SCRIPT> </head> <body onFocus="doscroll=false" onBlur="doscroll=true" onMouseOver="doscroll=false" onMouseOut="doscroll=true"> ... It scrolls down whenever the mouse is outside the frame with the stream. Cya, Thomas 'Neo' Weber --- thomas@youngarts.org neo@gothic-chat.de ----- Original Message ----- From: "Oliver Witt" <oliverwitt@t-online.de> To: <php-general@lists.php.net>; "Thomas Weber" <thomas@youngarts.org> Sent: Tuesday, October 08, 2002 10:51 AM Subject: Re: [PHP] Chat with php > > Hey cool, > That's working. The only problem I have now is that I want the most recent text > at the top. But that script adds it on the bottom. Any way to change that? At > least a way to always scroll automatically to the bottom? > Cya, > Olli

« previous php.general (#119242) next »