maheshforum Posted September 13, 2007 Share Posted September 13, 2007 Hi, How we create progressbar using java script....Can any one give me a sample code....... Link to comment Share on other sites More sharing options...
justsomeguy Posted September 13, 2007 Share Posted September 13, 2007 Well, it depends on a lot of things, especially what the progress bar is tracking. You can use the setInterval function to have some event happen periodically, like a colored bar moving horizontally. Link to comment Share on other sites More sharing options...
Synook Posted September 13, 2007 Share Posted September 13, 2007 Or you could use the onload attributes of, say, images, to increment the progress bar as the image elements load. Link to comment Share on other sites More sharing options...
maheshforum Posted September 14, 2007 Author Share Posted September 14, 2007 I'm trying this.... can u giv e me a sample code Link to comment Share on other sites More sharing options...
justsomeguy Posted September 14, 2007 Share Posted September 14, 2007 What code are you using now, and what do you want the progress bar to track? Link to comment Share on other sites More sharing options...
Kristian_C Posted September 14, 2007 Share Posted September 14, 2007 you can etc use PHP to do this, if you store the prosses %'s in a mysql database, like from 1-100 you can use a function like this : <?phpsession_start();$user=$_SESSION['user'];$usero=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE user='$user'"));echo"<table border=\"1\" width=\"100\" bordercolor=\"000000\" cellpadding=\"0\"><tr><td width=\"100\">User Prosess</td></tr><tr><td bgcolor=\"ff0000\" width=\"$usero->prosess\">$usero->prosess%<td></tr></table>";?> Think thats how i used something simlar one time .. Hope it can help you ..-Kristian_C Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.