note 10642 modified in echo by ronabop
| From: | ronabop@php.net | Date: | Wed, 21 Mar 2001 05:59:56 +0000 |
| Subject: | note 10642 modified in echo by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12611@lists.php.net to get a copy of this message | ||
Just some fun scrolling effect in console mode and a javascript style scrolling on a web page (only
with IE and refreshing once the page):
<?php
function scroll($str)
{
for($i=0;$i<strlen($str);$i++)
{
echo $str[$i];
flush();
usleep(300);
}
}
// example:
scroll("php is fun\n");
?>
have a nice day ;)
http://www.php.net/manual/echo.php