You are here: Re: random images « All PHP « IT news, forums, messages
Re: random images

Posted by tim on 05/26/05 15:51

On Thu, 26 May 2005 14:11:25 +0200, "\(¯`·..Yttrium ...·´¯\)"
<POUSSIERES.piegaspam@yahoo.fr> wrote:

>"rene willemsen" <foruminfo@gmail.com> a écrit dans le message de news:
>_Lhle.1389$e4.1247@newsfe4-win.ntli.net...
>> hi all,
>>
>> is there sombody who can helpme witht he following, i am ''pretty new'' to
>> php and am looking for a script to show images randomly at a 10/ 15
>seconds
>> interval. is there anybody who can help me with this or does know where to
>> find a good template script for this?
>>
>> thanks in advance,
>> rene
>
>
>Hi,
>
>With php, you can easily pick a random picture on your server, but you can't
>slide them each 10 seconds.
>To do this, you must have a look to a javascript function.
>Php is a server-side language, and you need a client -side one
>
>(Sorry for my english, because I'm French :-( )
>
From www.php.net/sleep -
The sleep() function delays program execution for the given number of
seconds.
So...

display image 1
sleep for 10 seconds
display image 2
sleep for 10 seconds
display image 3
sleep for 10 seconds

If you wanted a blank space between images, I expect you would make image 2
a totally blank / transparent image.

HTH.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация