PDA

View Full Version : Proress bar help



Dolphinia
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.

ddadmin
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.

Dolphinia
09-06-2006, 11:34 PM
Event-based Progress Bar
http://www.dynamicdrive.com/dynamicindex11/dhtmlprogress2.htm
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.
Sorry.

ddadmin
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.

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