Latest topics
» DKVS Đao kiếm vô song freeby hunter94 Thu Jul 02, 2015 2:44 pm
» Tuyển chọn những ca khúc của Như Hexi
by Cao Văn Võ Tue Jul 01, 2014 3:11 pm
» Kiếm Thế Phi Vũ Khai Mở máy chủ: thứ 7 ngày 3/5/2014
by Cao Văn Võ Sun Jun 29, 2014 11:43 am
» Võ Lâm Chi Mộng Private 2 Việt Hóa Miễn Phí 1 tỷ KBN
by Cao Văn Võ Sun Jun 29, 2014 11:41 am
» web game Võ Lâm Lậu trung quốc mới ra cực hấp dẫn
by Cao Văn Võ Sun Jun 29, 2014 11:39 am
» Gunny lậu tặng full xu và lever 60 mới nhất 2014
by Cao Văn Võ Sun Jun 29, 2014 11:36 am
» Gunny lậu việt nam hóa 100% full xu 2014
by Cao Văn Võ Sun Jun 29, 2014 11:34 am
» Gunny lậu free xu bản mới nhất năm 2014
by Cao Văn Võ Sun Jun 29, 2014 11:32 am
» Gunny Việt lậu free 50tr xu,vàng và lễ kim
by Cao Văn Võ Sun Jun 29, 2014 7:59 am
» Cua nhằm chị hai được nhằm em gái, Full
by Cao Văn Võ Sat Jun 28, 2014 2:08 pm
Most Viewed Topics
Hướng dẫn làm Chatbox tự động login + nút Buzz
Trang 1 trong tổng số 1 trang
Hướng dẫn làm Chatbox tự động login + nút Buzz
Sau đợt FM cập nhật chatbox có nhiều bạn vẫn chưa làm được Chatbox tự động login nên hôm nay mình sẽ hướng dẫn các bạn. Bài viết này có sử dụng code của cp và viewsource chatbox của C3Z.
Bây giờ ta bắt đầu làm chatbox nào.
Bước 1: tạo 1 trang HTML chèn code này vào (có thể chỉnh sửa nếu các bạn muốn) source này mình view của C3Z nên có cả nút Buzz nữa. Các bạn về chỉnh sửa cho hợp lý nha.
Chatbox C3Z
* {margin: 0px;padding: 0;}
html, body {overflow: hidden;}
body {background-color: #efefef;}
body,th,td,p {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:11px
}
a:link,a:active,a:visited,a:hover {
color:#5D401E;
text-decoration:none;
}
.thead,td.cat,td.catHead,td.catSides,td.catLeft,td .catRight,td.catBottom,td.rowpic {
background:#bfec92;
color:#1a540f;
padding:3px;
font:bold 11px tahoma,verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;
}
td.cat,td.catHead,td.catBottom {
border-width:0;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight ,th.thBottom,th.thCornerL,th.thCornerR {
font-weight:bold;
border:#ffffff;
border-style:solid;
}
.genmed {
font-size:11px;
}
th.thBottom,td.catBottom {
border-width:0 1px 1px 1px;
}
a.gen,a.genmed,a.gensmall {
color:#006699;
text-decoration:none;
}
.cattitle,td .t-title {
font-weight:bold;
font-size:12px;
letter-spacing:1px;
color:#006699
}
a.cattitle {
text-decoration:none;
color:#844A21;
font-size:12px;
}
a.cattitle:hover {
text-decoration:underline;
}
input[type=submit] {
padding:0 5px;
font-size:11px;
cursor:pointer;
background-color:#fff;
border:1px solid #a6a6a6;
color:#000;
font-weight: bold
}
/* Chatbox */
#frame_chatbox {
border:none !important;
}
body.chatbox {
min-width:550px !important;
background-image:none;
padding:0;
margin:0;
background-color:#fff;
}
#chatbox_members {
float:left;
top:28px;
bottom:30px;
width:110px;
overflow:auto;
border-right:1px solid #E5E5E5;
}
#chatbox {
position:absolute;
top:25px;
left:0;
right:0;
bottom:30px;
overflow:auto;
line-height:10px;
}
#chatbox ul {
list-style-type:none;
margin:5px 10px 10px 100px;
border-bottom:2px #3A3A3A dotted;
border-left:2px #3A3A3A dotted;
}
#chatbox li {
line-height:14px;
padding:3px 3px 3px 7px;
}
.chatbox_row_1,.chatbox_row_2,.chatbox_row_3 {
font-size:12px;
}
.chatbox-options {
text-align:right;
}
#chatbox_messenger_form .text-field,#chatbox_messenger_form,#chatbox_messenger_f orm .gen {
float:left;
}
#chatbox_footer {
position:absolute;
bottom:0;
left:0;
right:0;
height:30px;
}
#chatbox_footer table.text-styles {
float:right;
}
#chatbox_footer .text-field {
float:left;
}
#chatbox_header {
background-color:#e5e5e5;
}
#chatbox p {
line-height:1.2em;
}
.chatbox_row_1 {
padding:4px;
background-color:#fff;
}
.chatbox_row_2 {
padding:4px;
background-color:#FFDFDF;
}
.chatbox_row_3 {
padding:4px;
background-color:#CFE9FF;
}
.memberlist_row_1 {
padding:2px 2px 2px 10px;
background-color:#fff;
}
#chatbox_members .member-title {
text-align:center;
padding:0.5em 0.25em;
background-image:none;
font-size:12px;
background-color:#9FE6FF;
color:#222F03;
font-family:Verdana,Arial,Helvetica,sans-serif;
}
#chatbox_members ul {
list-style:none;
margin:0 0 0 10px;
}
#chatbox_members ul li {
margin:2px 2px 2px 0;
}
#message,#submit_button {
border-width:1px;
}
.fontbutton {
padding:1px;
cursor:pointer;
text-align:left;
}
.fontbutton_normal {
background:transparent;
}
.fontbutton_selected {
background:#0AAF11;
border:1px solid #22229C;
}
.fontbutton_clicked {
background:#1BACDF;
border:1px solid #22229C;
}
.fontbutton_hover {
background:#8F0000;
border:1px solid #22229C;
}
#chatbox .user {
font-weight:bold;
}
div#chatbox {
color:#000;background:#fff;
}
#chatbox_contextmenu {
background-color:#d1d7dc;
border:1px solid #aaa;
}
#chatbox_contextmenu p {
margin:0;
padding:1px 4px;
font-family:verdana,arial,sans-serif;
background:#;
border-bottom:1px solid #777;
}
#chatbox_contextmenu p.hover {
background:#;
}
#chatbox_contextmenu p.close {
background:#ddd;
padding:1px;
font-size:70%;
color:#fff;
}
#chatbox_contextmenu p.close img, label img {
vertical-align:middle;
padding-left:20px;
}
#chatbox_contextmenu a {
color:#;
text-decoration:none;
font-size:70%;
}
#chatbox_contextmenu a:hover {
color:#;
}
.fontbutton {
border: 0;
}
* html #chatbox-members {
/* IE expressions helping IE work in Standards mode */
height:expression(( document.documentElement.clientHeight ? document.documentElement.clientHeight:document.bod y.clientHeight) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 3)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 0) )+"px");
}
* html #chatbox {
/* IE expressions helping IE work in Standards mode */
height:expression(( document.documentElement.clientHeight ? document.documentElement.clientHeight:document.bod y.clientHeight) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 3)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 0) )+"px");
width:expression(( document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body .clientWidth) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 10)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 1)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 1.3) )+"px");
}
* html #chatbox-footer {
/* IE expressions helping IE work in Standards mode */
width:expression(( document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body .clientWidth) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 0)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 0)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 0) )+"px")
}
.date-and-time {font-size:8px}
#chatbox_option_disco,#chatbox_option_with_archive s,#chatbox_option_without_archives,.online-users a[href="/u1"],.online-users a[href="/u31"] {display:none!important}
.msg img {vertical-align:middle}
.msg>strong { font-size: 11px}
//
var params = '?archives=1';var smilies_sid = '';
$(document).ready(function(){
$('#').click(function(){
$("div").vibrate({
frequency: 5000,
spread: 5,
duration: 600
});
});
});
//]]>
Refresh | Without archives |
Bây giờ ta bắt đầu làm chatbox nào.
Bước 1: tạo 1 trang HTML chèn code này vào (có thể chỉnh sửa nếu các bạn muốn) source này mình view của C3Z nên có cả nút Buzz nữa. Các bạn về chỉnh sửa cho hợp lý nha.
* {margin: 0px;padding: 0;}
html, body {overflow: hidden;}
body {background-color: #efefef;}
body,th,td,p {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:11px
}
a:link,a:active,a:visited,a:hover {
color:#5D401E;
text-decoration:none;
}
.thead,td.cat,td.catHead,td.catSides,td.catLeft,td .catRight,td.catBottom,td.rowpic {
background:#bfec92;
color:#1a540f;
padding:3px;
font:bold 11px tahoma,verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;
}
td.cat,td.catHead,td.catBottom {
border-width:0;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight ,th.thBottom,th.thCornerL,th.thCornerR {
font-weight:bold;
border:#ffffff;
border-style:solid;
}
.genmed {
font-size:11px;
}
th.thBottom,td.catBottom {
border-width:0 1px 1px 1px;
}
a.gen,a.genmed,a.gensmall {
color:#006699;
text-decoration:none;
}
.cattitle,td .t-title {
font-weight:bold;
font-size:12px;
letter-spacing:1px;
color:#006699
}
a.cattitle {
text-decoration:none;
color:#844A21;
font-size:12px;
}
a.cattitle:hover {
text-decoration:underline;
}
input[type=submit] {
padding:0 5px;
font-size:11px;
cursor:pointer;
background-color:#fff;
border:1px solid #a6a6a6;
color:#000;
font-weight: bold
}
/* Chatbox */
#frame_chatbox {
border:none !important;
}
body.chatbox {
min-width:550px !important;
background-image:none;
padding:0;
margin:0;
background-color:#fff;
}
#chatbox_members {
float:left;
top:28px;
bottom:30px;
width:110px;
overflow:auto;
border-right:1px solid #E5E5E5;
}
#chatbox {
position:absolute;
top:25px;
left:0;
right:0;
bottom:30px;
overflow:auto;
line-height:10px;
}
#chatbox ul {
list-style-type:none;
margin:5px 10px 10px 100px;
border-bottom:2px #3A3A3A dotted;
border-left:2px #3A3A3A dotted;
}
#chatbox li {
line-height:14px;
padding:3px 3px 3px 7px;
}
.chatbox_row_1,.chatbox_row_2,.chatbox_row_3 {
font-size:12px;
}
.chatbox-options {
text-align:right;
}
#chatbox_messenger_form .text-field,#chatbox_messenger_form,#chatbox_messenger_f orm .gen {
float:left;
}
#chatbox_footer {
position:absolute;
bottom:0;
left:0;
right:0;
height:30px;
}
#chatbox_footer table.text-styles {
float:right;
}
#chatbox_footer .text-field {
float:left;
}
#chatbox_header {
background-color:#e5e5e5;
}
#chatbox p {
line-height:1.2em;
}
.chatbox_row_1 {
padding:4px;
background-color:#fff;
}
.chatbox_row_2 {
padding:4px;
background-color:#FFDFDF;
}
.chatbox_row_3 {
padding:4px;
background-color:#CFE9FF;
}
.memberlist_row_1 {
padding:2px 2px 2px 10px;
background-color:#fff;
}
#chatbox_members .member-title {
text-align:center;
padding:0.5em 0.25em;
background-image:none;
font-size:12px;
background-color:#9FE6FF;
color:#222F03;
font-family:Verdana,Arial,Helvetica,sans-serif;
}
#chatbox_members ul {
list-style:none;
margin:0 0 0 10px;
}
#chatbox_members ul li {
margin:2px 2px 2px 0;
}
#message,#submit_button {
border-width:1px;
}
.fontbutton {
padding:1px;
cursor:pointer;
text-align:left;
}
.fontbutton_normal {
background:transparent;
}
.fontbutton_selected {
background:#0AAF11;
border:1px solid #22229C;
}
.fontbutton_clicked {
background:#1BACDF;
border:1px solid #22229C;
}
.fontbutton_hover {
background:#8F0000;
border:1px solid #22229C;
}
#chatbox .user {
font-weight:bold;
}
div#chatbox {
color:#000;background:#fff;
}
#chatbox_contextmenu {
background-color:#d1d7dc;
border:1px solid #aaa;
}
#chatbox_contextmenu p {
margin:0;
padding:1px 4px;
font-family:verdana,arial,sans-serif;
background:#;
border-bottom:1px solid #777;
}
#chatbox_contextmenu p.hover {
background:#;
}
#chatbox_contextmenu p.close {
background:#ddd;
padding:1px;
font-size:70%;
color:#fff;
}
#chatbox_contextmenu p.close img, label img {
vertical-align:middle;
padding-left:20px;
}
#chatbox_contextmenu a {
color:#;
text-decoration:none;
font-size:70%;
}
#chatbox_contextmenu a:hover {
color:#;
}
.fontbutton {
border: 0;
}
* html #chatbox-members {
/* IE expressions helping IE work in Standards mode */
height:expression(( document.documentElement.clientHeight ? document.documentElement.clientHeight:document.bod y.clientHeight) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 3)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 0) )+"px");
}
* html #chatbox {
/* IE expressions helping IE work in Standards mode */
height:expression(( document.documentElement.clientHeight ? document.documentElement.clientHeight:document.bod y.clientHeight) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 3)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 0) )+"px");
width:expression(( document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body .clientWidth) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 10)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 1)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 1.3) )+"px");
}
* html #chatbox-footer {
/* IE expressions helping IE work in Standards mode */
width:expression(( document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body .clientWidth) - ( (parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 0)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 0)+(parseInt(document.body.currentStyle.fontSize) * 1.3333333 * 2 * 0) )+"px")
}
.date-and-time {font-size:8px}
#chatbox_option_disco,#chatbox_option_with_archive s,#chatbox_option_without_archives,.online-users a[href="/u1"],.online-users a[href="/u31"] {display:none!important}
.msg img {vertical-align:middle}
.msg>strong { font-size: 11px}
var params = '?archives=1';var smilies_sid = '';
$(document).ready(function(){
$('#').click(function(){
$("div").vibrate({
frequency: 5000,
spread: 5,
duration: 600
});
});
});
//]]>
Refresh | Without archives |
function ajax_connect(params, mode){if ( params == '' || params == undefined ){params = '?achives=0';}if (window.XMLHttpRequest){var http_request = new XMLHttpRequest();}else if (window.ActiveXObject){var http_request = new ActiveXObject("Microsoft.XMLHTTP");}http_request.onreadystatechange = function(){if (http_request.readyState == 4 && http_request.status == 200){var parsed_text = http_request.responseText;if ( parsed_text ){if ( mode == 'connect' ){document.getElementById('chatbox_option_co').sty le.display = 'none';document.getElementById('chatbox_option_dis co').style.display = '';document.getElementById('refresh_auto').checked = true;document.getElementById('chatbox_option_autor efresh').style.display = '';document.getElementById('chatbox_messenger_form ').style.display = '';document.getElementById('chatbox_footer').style .display = 'block';connected = 1;number_of_refresh = 0;}else if ( mode == 'disconnect' ){document.getElementById('chatbox_option_co').sty le.display = '';document.getElementById('chatbox_option_disco') .style.display = 'none';document.getElementById('chatbox_option_aut orefresh').style.display = 'none';document.getElementById('chatbox_messenger_ form').style.display = 'none';document.getElementById('chatbox_footer').s tyle.display = 'none';connected = 0;}refresh_chatbox(params);}}};http_request.open(' GET','/chatbox/chatbox_actions.forum'+params+'&mode='+mode+my_getcookie('mytid').substr(my_getcoo kie('mytid').indexOf('&tid='),37),true);http_request.send(null);}function CB_disconnect(){if ( connected ){ajax_connect('?archives=1', 'disconnect');clearInterval(refresh_interval);}els e{ajax_connect('?archives=1', 'connect');try {refresh_interval = setInterval("refresh_chatbox('?archives=1');", 5000);} catch (err) {}}}if ( document.location.href.indexOf('chatbox', 1) == -1 ){$('#divcolor').css('display', 'none');$('#divsmilies').css('display', 'none');}var connected = false;var chatbox_updated = 1310441470;var chatbox_last_update = 1310441470;var template_color = '#000000';var refresh_interval;window.setTimeout("document.getElementById('chatbox').scrollTop = 999999; Init_pref();", 200);window.setTimeout("document.getElementById('chatbox').scrollTop = 999999;", 1000);if ( connected ){try {refresh_interval = setInterval("refresh_chatbox('?archives=1');", 5000);} catch (err) {}}else{try {refresh_chatbox('?archives=1');} catch (err) { }}//]]>