RE: [PHP] progession bar

From: Date: Wed, 09 May 2001 16:51:50 +0000
Subject: RE: [PHP] progession bar
Groups: php.general 
Request: Send a blank email to php-general+get-52147@lists.php.net to get a copy of this message
You might use the following method, which will work under Internet Explorer. <HTML> .. etc <TABLE> <TR> <TD ID="TD1" CLASS="NOTDONE"></TD> " " " TD2 etc TD6 </TR> </TABLE> <SCRIPT> var which=1; function progress_bar() { eval("TD"+which+".className='DONE'"); which++; if (which>6) clearTimeout(); } window.setTimeout('progress_bar()',10000); </SCRIPT> ...etc </HTML> -----Original Message----- From: Reuben D Budiardja [mailto:reubendb@goshen.edu] Sent: 09 May 2001 16:24 To: Jacky; php-general@lists.php.net Subject: Re: [PHP] progession bar I remember that a somewhat similar issues was discussed here sometime ago. Check the list archives ( I think the subject was "Progress Bar"). Hope that will give you some ideas also. Reuben D. B At 12:32 PM 5/9/01 -0500, Jacky wrote: >Hi all >Does any one know how to do the progession bar to mesure the time out? >Like give it 1 minute for the bar to progress, I got some logic here but >something still unclear to me. >The procedures I see are >1. get curren time when the page is loaded >2. add 60 seconds on that current time value to tell when to stop the bar >3. make a table , 6 rows so each row repersent every 10 seconds >4. This is the bit where I got stuck, how do I change the color of table >cell every 10 secs for 6 times. >any help will be thankful >Jack >jacky@activelifestyle.com >"There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#52147) next »