galera to com um erro aki ... aki n]ao aparece o negocio " LOGAR " PARA MIN logar no chatbox olhe :
https://i.imgur.com/swMOqSZ.png
se tiver alguma solução agradeço muito !
https://i.imgur.com/swMOqSZ.png
se tiver alguma solução agradeço muito !
$(document).ready(function() {
$('.panel .inner #chatbox_top').append('<input class="log" type="button" value="Logar-se no chatbox" style="margin-right: 10px;"><input class="deslog" type="button" value="Deslogar-se no chatbox"><span style="display: none;" class="chatboox">0</span>');
$('#frame_chatbox').replaceWith('<iframe src="chatbox/index.forum?page=front&" id="frame_chatbox" style="width: 100%;height: 100%;border: none;"></iframe>');
$('.log').click(function() {
$('#frame_chatbox').contents().find('ul.chatbox-options li:last a[onclick] span:first').click();
$(this).fadeOut();
$('.deslog').fadeIn();
$('.chatboox').html('1');
});
$('.deslog').click(function() {
$('#frame_chatbox').contents().find('ul.chatbox-options li:last a[onclick] span:first').click();
$(this).fadeOut();
$('.log').fadeIn();
$('.chatboox').html('0');
});
if($('.chatboox').html()=='1') {
$('.deslog').fadeIn();
$('.log').fadeOut();
}
if($('.chatboox').html()=='0') {
$('.log').fadeIn();
$('.deslog').fadeOut();
}
});
$(function(){
if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');
});
Tópicos semelhantes
|
|