Fórum iBlue
[Ajuda] Aviso chatbox Buddy_Group

Bem Vindos ao iBlue GAMES!

Registre-se para obter acesso especial em todo conteúdo presente no Fórum!
Tenha um bom uso do nosso fórum, e seja ativo!





Fórum iBlue
[Ajuda] Aviso chatbox Buddy_Group

Bem Vindos ao iBlue GAMES!

Registre-se para obter acesso especial em todo conteúdo presente no Fórum!
Tenha um bom uso do nosso fórum, e seja ativo!





Somos ÚNICOS, somos o SEU fórum


Você não está conectado. Conecte-se ou registre-se

Ver o tópico anterior Ver o tópico seguinte Ir para baixo  Mensagem [Página 1 de 1]

'Fusion

1[Ajuda] Aviso chatbox Empty [Ajuda] Aviso chatbox Sáb 9 Mar 2013 - 11:04

avatar
Visitante
Olá gostaria de pedir ajuda sobre o javascript que avisa quando chega nova mensagem na chatbox.

Problema : fiz tudo certo mais não avisa.

Meu Fórum : weesgames.forumeiros.com

T-Lord

2[Ajuda] Aviso chatbox Empty Re: [Ajuda] Aviso chatbox Sáb 9 Mar 2013 - 11:18

T-Lord
Administrador
Mas adicionou os códigos tudo certinho?

http://www.zonetoony.net/
'Fusion

3[Ajuda] Aviso chatbox Empty Re: [Ajuda] Aviso chatbox Sáb 9 Mar 2013 - 11:22

avatar
Visitante
Sim adicionei tudo certo =D

T-Lord

4[Ajuda] Aviso chatbox Empty Re: [Ajuda] Aviso chatbox Sáb 9 Mar 2013 - 11:31

T-Lord
Administrador
Tentar novamente.

Vai na sua Javascript e adicionar esse código:

Código:
        jQuery(function() {
          setTimeout(function() {
            for(var c = 0, a = 0;a < window.frames.length;a++) {
              try {
                "/chatbox/index.forum" == eval("window.frames[a].location.pathname") && ++c && window.frames[a].eval('function ajax_refresh_chatbox(b,c){if(""==b||void 0==b)b="?achives=0";if(window.XMLHttpRequest)var a=new XMLHttpRequest;else window.ActiveXObject&&(a=new ActiveXObject("Microsoft.XMLHTTP"));a.onreadystatechange=function(){if(4==a.readyState&&200==a.status&&(eval(a.responseText),chatbox_last_update>chatbox_updated||c))null!=document.getElementById("chatbox").innerHTML&&chatbox_messages_old!=chatbox_messages&&(my_setcookie("CNM",1,1,0),chatbox_messages_old=document.getElementById("chatbox").innerHTML=chatbox_messages,document.getElementById("chatbox").scrollTop=document.getElementById("chatbox").scrollHeight+document.getElementById("chatbox").offsetHeight,document.getElementById("chatbox").scrollTop=999999),null!=document.getElementById("chatbox_members").innerHTML&&(document.getElementById("chatbox_members").innerHTML=chatbox_memberlist),chatbox_updated=chatbox_last_update};a.open("GET","/chatbox/chatbox_actions.forum"+b+"&mode=refresh",!0);a.send(null)};jQuery(window).focus(function(){my_setcookie("CHF",1,1,0);my_setcookie("CNM","",0,0)}).blur(function(){my_setcookie("CHF","",0,0);my_setcookie("CNM","",0,0)}).trigger("focus");')
              }catch(d) {
              }
            }
            0 < c && function() {
              jQuery(window).focus(function() {
                my_setcookie("CHF", 1, 1, 0);
                my_setcookie("CNM", "", 0, 0)
              }).blur(function() {
                my_setcookie("CHF", "", 0, 0);
                my_setcookie("CNM", "", 0, 0)
              }).trigger("focus");
              var a = document.title, b = function() {
                !my_getcookie("CHF") && my_getcookie("CNM") ? (document.title = a == document.title ? "Nova Mensagem!" : a, setTimeout(b, 300)) : (document.title = a, setTimeout(b, 5E3))
              };
              b()
            }()
          }, 5E3)
        });

http://www.zonetoony.net/
'Fusion

5[Ajuda] Aviso chatbox Empty Re: [Ajuda] Aviso chatbox Sáb 9 Mar 2013 - 12:26

avatar
Visitante
Funcionou perfeitamente agora vlw's

T-Lord

6[Ajuda] Aviso chatbox Empty Re: [Ajuda] Aviso chatbox Sáb 9 Mar 2013 - 16:41

T-Lord
Administrador
De nada, estou aqui para ajudar.

Se precisar de mais coisas é só pedi novamente!

http://www.zonetoony.net/
T-Lord

7[Ajuda] Aviso chatbox Empty Re: [Ajuda] Aviso chatbox Qui 25 Abr 2013 - 17:46

T-Lord
Administrador
Tópico Movido para Pedidos/Suporte Finalizados e Resolvido!

http://www.zonetoony.net/
Conteúdo patrocinado

8[Ajuda] Aviso chatbox Empty Re: [Ajuda] Aviso chatbox


Ver o tópico anterior Ver o tópico seguinte Ir para o topo  Mensagem [Página 1 de 1]

Permissões neste sub-fórum
Não podes responder a tópicos