Re: [PHP] progession bar
Yes, true... it's a Client side problem, and i only can think of scripting solution like JavaScript or VbScript... you can via javascript get the time when the page is opened and on the OnLoad event of the body take the time again and make the difference... Also you can install a progress-bar too before the form is loaded, and even in a seperat window controlled by your javascript! -elias http://www.eassoft.cjb.net Jacky [EMAIL PROTECTED] wrote in message 005301c0d89b$efb63480$[EMAIL PROTECTED]">news:005301c0d89b$efb63480$[EMAIL PROTECTED]... Hi all does anyone know how to make the progression bar according to the time out that has been set up to start after the page is load? Jack [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] progession bar
This is a very simple progress bar, you need to decorate it. As you can see the step() function deals with the ellapsed time. For more see your favourite javascript manual or for example http://www.webreference.com/dhtml/ Feel free to use it: !doctype html public -//W3C//DTD HTML 4.0 Transitional//EN html style #container { WIDTH: 60px; POSITION: absolute; TOP: 80px; BACKGROUND-COLOR: red } #progress { WIDTH: 1px; BACKGROUND-COLOR: blue } /style SCRIPT language='Javascript1.2' !-- function start() { if(document.layers) { ellapsed = document.progress; } else if (document.all) { ellapsed = progress.style }; ellapsed.width = 0; step(); } function step() { if (parseInt(ellapsed.width) 60) { setTimeout('step()', 100)}; ellapsed.width = parseInt(ellapsed.width) + 1; } // -- /SCRIPT /head body a href=javascript:start();click to start/a pthis progress bar is in hurry :), you should adjust the 2nd argument of setTimeout() in function step() from 100 to what you prefer./p !-- here comes the progress bar -- div id='container'span id='progress'/span/div /body /html - Original Message - From: Jacky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 9. 19:32 Subject: [PHP] progession bar 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] progession bar
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 (which6) clearTimeout(); } window.setTimeout('progress_bar()',1); /SCRIPT ...etc /HTML -Original Message- From: Reuben D Budiardja [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 16:24 To: Jacky; [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]