View Full Version : Proress bar help

09-06-2006, 09:29 PM
I looked around but I didn't find an answer to my question if I missed it I am sorry.
I'm designing a game for the kids at my church to play it has a progress bar on it that keeps track of their study but everytime they leave the page it resets to zero. My question is how do I get the bar to retain the amount of progress they've made toward the next level instead of reverting back to zero.

09-06-2006, 11:14 PM
Warning: Is this a DD script question? If so, please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

09-06-2006, 11:34 PM
Event-based Progress Bar
This was the progress bar script I was looking at but I couldn't find a way to keep the progress on the bar once they logged out.

09-07-2006, 05:09 AM
What you need may require a lot of customization due to you mentioning "once they log out", but anyhow, below is a modified version of percent_bar.js that uses cookies to remember the last state of the progress bar, so reloading/revisiting the page etc automatically recalls the last known state.

09-07-2006, 06:24 PM
Thank you