12/4/2012, 1:15 pm
Quản Trị Viên
a bỏ code Phòng Chat (công cộng )
rồi chèn cái này vào footer begin nhá cái này hay hơn
thay http://truongthpt.123.st/h5-page = trang chatbox của anh
demo https://i.servimg.com/u/f41/16/91/90/56/11_bmp10.jpg
hoặc web của em nhá anh
rồi chèn cái này vào footer begin nhá cái này hay hơn
thay http://truongthpt.123.st/h5-page = trang chatbox của anh
demo https://i.servimg.com/u/f41/16/91/90/56/11_bmp10.jpg
hoặc web của em nhá anh
- Code:
<!-- BEGIN switch_user_logged_in -->---chatbox---><style type="text/css">#chatvds_menu{cursor:pointer;display:inline}#autologinchat{display:none}#chatvds_menu:hover{background-color:#333;color:#ff0}#thongdiep_chat{position:fixed;bottom:30px;right:80px}#chatvds_menu,#autologinchat{background:none repeat scroll 0 0 #F7F700;border:1px solid #999;float:left;margin:-6px 5px;padding:5px}#tuychinh_chat{display:none;z-index:999;height:25px;position:fixed;bottom:-1px;right:0;font-family:Tahoma, Arial;font-size:12px;font-weight:700}#chatfmvi{background-image:url(http://i48.servimg.com/u/f48/13/58/60/43/mainco13.png);z-index:999;position:fixed;right:5px;bottom:30px;width:65%;height:50%;display:none;border:1px solid #999;margin:0;padding:0}#mes_chat,#onl_chat,#away_chat{color:red}</style>
<div id="tuychinh_chat" onmouseover="hien_tuychinh();" onmouseout="an_tuychinh();">
<div id="autologinchat">
<input type="checkbox" checked="checked" />
<span class="gensmall">Auto Login</span>
</div>
<div id="chatvds_menu"><strong style="float:left"> Tin nhắn mới [
<span id="mes_chat">0</span>] Online [
<span id="onl_chat">0</span>] Away [
<span id="away_chat">0</span>]</strong></div>
</div>
<iframe id="chatfmvi" onload="firstchatfmvi()" src="http://truongthpt.123.st/h5-page" onerror="firstchatfmvi)"></iframe>
<script type="text/javascript">
function firstchatfmvi() {
setInterval(function () {
if (-1 == $("#chatfmvi").contents().find("#chatbox p:first").text().indexOf("You are disconnected") && -1 == $("#chatfmvi").contents().find("p:first").text().indexOf("You must be connected to use the ChatBox")) {
var c = $("#chatfmvi").contents().find("#chatbox_members .away").next("ul").find("li").length,
d = $("#chatfmvi").contents().find("#chatbox_members .online").next("ul").find("li").length,
a, b;
"block" == $("#chatfmvi").css("display") && (null == my_getcookie("old_messenger") ? my_setcookie("old_messenger", 0, !0) : my_setcookie("old_messenger", $("#chatfmvi").contents().find("#chatbox p").length, !0));
a = Number($("#chatfmvi").contents().find("#chatbox p").length);
b = Number(my_getcookie("old_messenger"));
a < b ? (a = "X", my_setcookie("old_messenger", 0, !0)) : a -= b
} else c = d = a = "X";
0!=$("#pun-head a.mainmenu[href='/login']").length&&my_setcookie("old_messenger",0,!0);
$("#mes_chat").text(a);
$("#onl_chat").text(d);
$("#away_chat").text(c)
}, 1E3);
$("#tuychinh_chat").fadeIn(1E3);
$("#autologinchat").click(function () {
0 != $("#autologinchat input:checked").length ? my_setcookie("check_loginchat", "yes", !0) : my_setcookie("check_loginchat", "no", !0)
});
"no" == my_getcookie("check_loginchat") && $("#autologinchat input").attr("checked", !1);
$("#chatvds_menu").click(function () {
$("#chatfmvi").slideToggle();
0 != $("#autologinchat input:checked").length && "none" != $("#chatfmvi").contents().find("#chatbox_option_co").css("display") && $("#chatfmvi")[0].contentWindow.CB_disconnect()
})
}
function hien_tuychinh() {
$("#autologinchat").show()
}
function an_tuychinh() {
$("#autologinchat").hide()
};
</script><!-- END switch_user_logged_in -->