If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Page loading progress

Hi,
I developed a game and I would like with js to have a progress loading in the title tag -> <head><tile>Loadning with %</title></head>. Practically when page loading before the game start in the title of doc must appear a progress % of loading. Somone told me is possible but I don' know how. Please help showing an example of that in js.
Thanks
Jakub

In your case the only 'trick' would be dynamically getting the progress (which I assume is stored in some variable) and inserting this into your dynamic <title> tag, either on a timed interval or whenever progress actually occurs (which depends on how your game is set up to load).

This is of course not exact for your situation since I haven't seen any of your code and thus do not know your variable names, available functions, events or methods. But the concept is simple enough and you shouldn't have too much trouble implementing this.

"Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"

In your case the only 'trick' would be dynamically getting the progress (which I assume is stored in some variable) and inserting this into your dynamic <title> tag, either on a timed interval or whenever progress actually occurs (which depends on how your game is set up to load).

This is of course not exact for your situation since I haven't seen any of your code and thus do not know your variable names, available functions, events or methods. But the concept is simple enough and you shouldn't have too much trouble implementing this.