Đề Mô:
Cho code sau vào nơi muốn hiển thị CB thường là index_body:
Cho code sau vào nơi muốn hiển thị CB thường là index_body:
- Code:
<!-- BEGIN switch_user_logged_in -->
<div class="module main" style="margin-top: 1em! important;">
<div class="main-head">
<div class="h3">Khu vực tán ngẫu chung.</div></div>
<div class="main-content">
<iframe width="0%" height="0px" frameborder="0" id="chatfmvi" onload="firstchatfmvi()" src="/chatbox/index.forum?archives=1" onerror="firstchatfmvi()" style="margin: 2px;"></iframe>
<iframe width="100%" height="340px" frameborder="0" id="chatfmvi" onload="firstchatfmvi()" src="/h1-" onerror="firstchatfmvi()" style="margin: 2px;"></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>
</div></div>
<!-- END switch_user_logged_in -->
Chú ý: Sửa /h1- thay số 1 bằng số page bạn vừa add HTML chatbox |
Last edited by Gió Vô Cảm on Thu Oct 25, 2012 7:52 am; edited 1 time in total