Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <!-- Api Criado por Drizer -->
- <!-- Scanner por Business -->
- <!--
- Copyright (C) 2012 todos os direitos reservados
- -->
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Habbo-Api-Test</title>
- <style type="text/css">
- body,td,th {
- font-family: Verdana, Geneva, sans-serif;
- font-size: 10px;
- }
- </style>
- <script type="text/javascript">
- _obtendo = 0;
- function _completa(dados) {
- _obtendo = 0;
- var dados = dados.habbo;
- document.getElementById('dados').style.display='';
- document.getElementById('carregando').style.display='none';
- document.getElementById('nick').innerHTML =dados.nick;
- document.getElementById('missao').innerHTML =dados.missao!=""?dados.missao:"<i>Sem missão</i>";
- document.getElementById('visita').innerHTML =dados.ultimo_login;
- document.getElementById('data').innerHTML =dados.criado_em;
- document.getElementById('status').innerHTML =dados.status;
- };
- function _get(habbo) {
- if(_obtendo == 1) return;
- _obtendo = 1;
- document.getElementById('dados').style.display='none';
- document.getElementById('carregando').style.display='';
- var a=document.createElement('script');
- a.src="http://drizer.net63.net/habbo_api.php?callback=_completa&habbo="+habbo+"&hotel=com.br";
- document.body.appendChild(a);
- };
- </script>
- </head>
- <body>
- <h1>Informações de um Habbo</h1>
- <div id="carregando" style="display:none">
- <b>Carregando...</b>
- </div>
- <div id="dados">
- <b>Nick Habbo:</b> <input id="nick" /> <button onclick="_get(document.getElementById('nick').value);">OK</button><br /><br />
- <b>Missao:</b> <div id="missao">??</div><br />
- <b>Criado em:</b> <div id="data">??</div><br />
- <b>Ultima visita:</b> <div id="visita">??</div><br />
- <b>Status:</b> <div id="status">??</div><br />
- </div>
- <br /><br />
- Criado por <b>Business</b>, utilizando <b>Habbo UserInfo API</b> by <b>Drizer</b>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment