Nombre: Poner sonido a la ChatBox - Version Starter
Autores: Sea
Lenguaje: Todos
Dificultad: Ninguno
Comentarios: Bueno, por fin he conseguido ponerle sonido a la chatbox. Para su instalación no vas a tener ninguna dificultad. El sonido que le puse por defecto es el de facebook chat.
Instrucción:Visualización
Templates
General
overall_header
* Solo copia todo este código y pégalo al final del código que viene por defecto en la
overall_header, y eso es todo, asi de sencillo.
- Código:
<style>
#shoutboxcportada {
z-index: 999;
height:100%;
position:fixed;
right:5px;
display:none;
margin:0;padding:0
}
</style>
<div style="visibility: hidden" id="cp_chat" onmouseover="hien_cp();" onmouseout="an_cp();">
<div id="audiochatmess"></div>
<span id="numfirst">0</span>
<span id="numlast">a</span>
</div>
<iframe id="shoutboxcportada" onload="firstshoutboxcportada()" src="/chatbox/index.forum?page=front&"></iframe>
<script type="text/javascript">
function firstshoutboxcportada() {
$("#shoutboxcportada").contents().find("#chat").click(function () {
$("#shoutboxcportada")[0].contentWindow.submitmsg("?archives=1")
});
$("#sea").text($("#shoutboxcportada").contents().find("#chatbox_members li").length);
setInterval(function () {
var b = $("#shoutboxcportada").contents().find("#chatbox_members li").length;
$("#numfirst").text($("#shoutboxcportada").contents().find("#chatbox p").length);
setTimeout('$("#numlast").text($("#shoutboxcportada").contents().find("#chatbox p").length)', 1E3);
0 < Number($("#numfirst").text()) - Number($("#numlast").text()) && $("#audiochatmess").html('<embed type="application/x-shockwave-flash" src="http://www.estvideo.com/dew/media/dewplayer-mini.swf" flashvars="mp3=https://fbstatic-a.akamaihd.net//rsrc.php//yb//r//VBbzpp2k5li.mp3&autoplay=1" width="1" height="1" />');
$("#mes_chat").text(a)
},
1E3)
}
</script>
Y listo ya tienes la ChatBox con el sonido que querías.
Última edición por Sorel el 11/4/2018, 5:24 pm, editado 1 vez