Boas-vindas ao Power Pixel

Junte-se a comunidade! Crie o seu próprio conteúdo, e faça amizades.EntrarCriar uma conta

Som no Chat Box

3 participantes

Alexandre51 Alexandre51  • Sex 17 Jan 2014 - 15:09

Som no Chat Box Empty Som no Chat Box Sex 17 Jan 2014 - 15:09

Qual é minha questão:
Gostaria de saber como posso colocar um som no chat box que toque sempre que alguém enviar uma mensagem.

Endereço do meu fórum:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Versão:
PunBB

Alexandre51 Alexandre51  • Sáb 18 Jan 2014 - 0:38

Som no Chat Box Empty Re: Som no Chat Box Sáb 18 Jan 2014 - 0:38

up

[K]oke [K]oke  • Sáb 18 Jan 2014 - 1:20

Som no Chat Box Empty Re: Som no Chat Box Sáb 18 Jan 2014 - 1:20

[aviso=UP a cada 24 horas.][/aviso]

Alexandre51 Alexandre51  • Sáb 18 Jan 2014 - 8:15

Som no Chat Box Empty Re: Som no Chat Box Sáb 18 Jan 2014 - 8:15

Desculpe achei que mudando de dia ja poderia..

Alexandre51 Alexandre51  • Ter 21 Jan 2014 - 22:22

Som no Chat Box Empty Re: Som no Chat Box Ter 21 Jan 2014 - 22:22

Up
Alguem sabe ???

~Rafra ~Rafra  • Qua 22 Jan 2014 - 13:37

Som no Chat Box Empty Re: Som no Chat Box Qua 22 Jan 2014 - 13:37

Reputação da mensagem: 100% (1 votos)
Olá,
Crie um Javascript com este Codigo :

Código:
navigator.appName!="Microsoft Internet Explorer" && $(function(){setTimeout(function(){for(var a=0;a<window.frames.length;a++)try{window.frames[a].location.pathname=="/chatbox/index.forum"&&window.frames[a].$.getScript("http://www.maonyn.com/10249.js")}catch(b){}},1500)});
Investimento: Em todas as Paginas,


~Resulta ?

Alexandre51 Alexandre51  • Sex 24 Jan 2014 - 16:41

Som no Chat Box Empty Re: Som no Chat Box Sex 24 Jan 2014 - 16:41

Nao funcionou :/

~Rafra ~Rafra  • Sex 24 Jan 2014 - 17:21

Som no Chat Box Empty Re: Som no Chat Box Sex 24 Jan 2014 - 17:21

Olá,

Você ta usando Chatbox de Html ?

Alexandre51 Alexandre51  • Seg 27 Jan 2014 - 16:51

Som no Chat Box Empty Re: Som no Chat Box Seg 27 Jan 2014 - 16:51

Uso este JS:

Código:



$(function(){



$('<iframe style="margin-left: 0px; Width: 100%; height:
300px;" frameborder="0" onerror="firstchatfmvi()"
src="/chatbox/index.forum?archives=1"
onload="firstchatfmvi()" id="chatfmvi"></iframe>



<script type="text/javascript">function firstchatfmvi()
{setTimeout(function () {if
($("#chatfmvi").contents().find("#chatbox_option_disco").css("display")
== "none") {$("#chatfmvi")[0].contentWindow.CB_disconnect()}},
2000);}</script>').insertBefore('#page-body');



$('.main-content.chatbox').before('<input type="submit"
name="post" value="Como se sente?" class="mood"
title="Como você está se sentido?" onclick=" mood()">



<div class="moodInner" style="display: none;">



  <div
class="uiTypeaheadView">



  <ul class="compact">



<li class="page" onclick=" feliz()"><img
src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/ys/r/v5pIg8BgPhs.png"><span
class="text">feliz</span></li>



<li class="page" onclick=" triste()"><img
src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yB/r/9KP8SigtDm2.png"><span
class="text">triste</span></li>



<li class="page" onclick=" cansado()"><img
src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y4/r/og7IX7S3EjB.png"><span
class="text">cansado</span></li>



<li class="page" onclick=" otimo()"><img
src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yv/r/cEiOws9B72j.png"><span
class="text">ótimo</span></li>



<li class="page" onclick=" inc()"><img
alt=""
src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/Ta9iYOdm63s.png"><span
class="text">incomodado</span></li>



<li class="page" onclick=" inc()"><img
alt=""
src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yr/r/z3HxNaHPwa4.png"><span
class="text">doente</span></li>



  </ul>



 </div>



</div>');



$('.moodInner li').click(function() {



$('.moodInner').hide();



});



});



function mood() {



   
$('.moodInner').fadeToggle('fast');



}



function feliz() {



   
$.post('/chatbox/chatbox_actions.forum?archives', {



    mode: "send",



    sent: ":) se sentindo
feliz."



    });



}



function triste() {



   
$.post('/chatbox/chatbox_actions.forum?archives', {



    mode: "send",



    sent: ":( se sentindo
triste."



    });



}



function cansado() {



   
$.post('/chatbox/chatbox_actions.forum?archives', {



    mode: "send",



    sent: ":sleep: se
sentindo cansado."



   
});



}



function otimo() {



   
$.post('/chatbox/chatbox_actions.forum?archives', {



    mode: "send",



    sent: ":D se sentindo
ótimo."



    });



}



function inc() {



   
$.post('/chatbox/chatbox_actions.forum?archives', {



    mode: "send",



    sent: ":x se sentindo
incomodado."



    });



}



function inc() {



   
$.post('/chatbox/chatbox_actions.forum?archives', {



    mode: "send",



    sent: ":no: se sentindo
doente."



    });



}



 



<!-- BEGIN disable_viewonline -->



e este aqui tb 
Código:
jQuery(document).ready(function(){i=0;jQuery('#frame_chatbox').replaceWith('<iframe src="/chatbox" id="frame_chatbox" width="100%" height="100%" style="border:none;"></iframe>');jQuery('#frame_chatbox').load(function(){if(jQuery('#frame_chatbox').contents().find('#chatbox_option_disco').css('display')=='none'&&i==0){i++;jQuery('#frame_chatbox').contents().find('a[onclick="CB_disconnect();"] #chatbox_option_co').click();}});});

~Rafra ~Rafra  • Seg 27 Jan 2014 - 17:30

Som no Chat Box Empty Re: Som no Chat Box Seg 27 Jan 2014 - 17:30

Reputação da mensagem: 100% (1 votos)
Olá,
O Codigo que te passei so funciona no Chatbox Normal .
Estarei tentando fazer para funcionar no oque você esta usando

Conteúdo patrocinado  • 

Som no Chat Box Empty Re: Som no Chat Box

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