skip to main
|
skip to sidebar
var jjLoader = { 'maxStep': 0, 'currentStep': 1, 'isInit': false, 'interval': null, 'init': function(_wrapperId, _maxStep, _imageUrl, _backgroundUrl){ jjLoader.maxStep = _maxStep; var wrapper = document.getElementById(_wrapperId); wrapper.innerHTML += '
'+ '
'+ '
Conectando.. 0%
'+ '
'+ '
'+ '
'+ '
'; jjLoader.interval = window.setInterval(jjLoader.IntervalUpdate, 10); jjLoader.isInit = true; return true; }, 'progressNow': 0, 'progress': 0, 'IntervalUpdate': function(){ if (jjLoader.progressNow >= jjLoader.progress || jjLoader.progressNow >= 100) { return; } jjLoader.progressNow += 2; var wrapperLoaderProgress = document.getElementById('wrapperLoaderProgress'); wrapperLoaderProgress.style.width = jjLoader.progressNow +'%'; }, 'doUpdate': function(_text){ if (!jjLoader.isInit) { return false; } jjLoader.currentStep++; jjLoader.progress = Math.round((100 / jjLoader.maxStep) *jjLoader.currentStep); if (jjLoader.progress > 100) { jjLoader.progress = 100; } jjLoader.updateText(_text); return true; }, 'updateText': function(_text){ if (!jjLoader.isInit) { return false; } var text = ''; if (jjLoader.progress > 0 && jjLoader.progress < 26) { text = "Cargando usuarios.."; } else if (jjLoader.progress > 25 && jjLoader.progress < 50) { text = "Configurando Habbos.."; } else if (jjLoader.progress > 49 && jjLoader.progress < 77) { text = "Cargando datos.."; } else if (jjLoader.progress > 76 && jjLoader.progress < 93) { text = "Preparando salas.."; } else if (jjLoader.progress > 92 && jjLoader.progress < 101) { text = "¡Bienvenido a Revolution!"; } var wrapperLoaderText = document.getElementById('wrapperLoaderText'); wrapperLoaderText.innerHTML = text+' '+jjLoader.progress+'%'; return true; }, 'finish': function(){ if (!jjLoader.isInit) { return false; } var wrapperLoader = document.getElementById('wrapperLoader'); wrapperLoader.parentNode.removeChild(wrapperLoader); window.clearInterval(jjLoader.interval); return true; } };
Inicio
Parceria
Cargos
Tutoriais de Habbo
Servers
Loaders
Xat
Blog do Neozinho
Parceiros
Pesquisa
Entre no Hotel!
Patrocinador
Nenhuma postagem.
Nenhuma postagem.
Assinar:
Postagens (Atom)
© 2010 Template criado por
Blog do Neozinho