Daemon escreveu:Crie um novo js com investimento no índice:
- Código:
$(function() {
$('#frame_chatbox').parent().html('<iframe src="/chatbox" width="100%" height="100%" id="frame_chatbox" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe>');
$('.chatbox').after('<div class="chat_bar" style="padding: 4px;background: #EFF1F3;border: 1px solid #D9DBDD;box-shadow: 0 0 3px rgba(109,119,237,0.2);text-align: center;color: #454545;font-family: sans-serif;font-weight: bold;">
<img src="http://imageshack.us/a/img713/3858/0bjc.png">Membros no chat<div id="campo_online" style="display: inline;font-family: sans-serif;font-weight: bold;font-size: 13px;background-color: #c9c9c9;padding-left: 5px;padding-right: 5px;margin: 2px 0 0 5px;border-radius: 3px;">0</div></div>');
$('#campo_online').html('0');
});
function online(){
$('#campo_online').html(''+$('#frame_chatbox').contents().find('.online-users, .away-users').find('li').length);
}
[justify]window.setInterval('online()');
Até mais!
O chat dele é o do JScript, Sendo assim - PunBB Chat (v1.1112pr).
Ou seja, Não da para instalar por meio de JavaScript, Apenas pela HTML do shout.
Até + Daemonzito <3