...

View Full Version : Game loading JavaScript



cryoffalcon
03-23-2012, 08:15 PM
Hi,
well i searched at google and was not exactly able to find what i was looking for, i am looking for a script the shows by logo while loading the game at back end, shows loading percentage or bar representing how game is loaded and then makes the my logo disappear once the game is loaded e-g like this site has used http://www.gamegape.com/en-2095-elemental-battles.html
if some thing like this is not available can someone atleast tell me how this site has done it, so we could copy it from them ^_^

Old Pedant
03-23-2012, 09:17 PM
That's a FLASH animation. Nothing to do with JavaScript.

You can do similar stuff with JavaScript, but you need server-side help to know what percentage is loaded. If you don't mind "faking" the percentage, you can do it.

cryoffalcon
03-24-2012, 01:02 PM
That's a FLASH animation. Nothing to do with JavaScript.

You can do similar stuff with JavaScript, but you need server-side help to know what percentage is loaded. If you don't mind "faking" the percentage, you can do it.

First of all thanks for reply,
well i do have server side access as i upload all of the games so i have access to it but i don't want to fake it, as faking is not an option for me. I am using games in one of the lightbox that i have. And in that lightbox even if you have not triggered it (in simple language even if you have not opened it) the fake preloader starts working, so before someone clicks play, all the time has ran out already ^_^

I have seen many sites using scripts to show the actual loading not through flash

Old Pedant
03-25-2012, 12:21 AM
It depends on WHAT you are downloading.

If you are just downloading *data* then you could easily download it in chunks and show the progress as each new chunk is received.

I'm not sure what it means, though, to download a JavaScript-written game or whatever. How do you measure what percentage of the *code* has been downloaded?

cryoffalcon
03-25-2012, 09:31 AM
It depends on WHAT you are downloading.

If you are just downloading *data* then you could easily download it in chunks and show the progress as each new chunk is received.

I'm not sure what it means, though, to download a JavaScript-written game or whatever. How do you measure what percentage of the *code* has been downloaded?

Well i found a script that can do that and works perfectly i have tested it but there is a problem that is teasing, can you sort out that part of script?
here you can see the post that i have made http://www.codingforums.com/showthread.php?p=1208144#post1208144



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum