Mình thấy bên comicvn.net có mod con thỏ có thể tự nói chuyện với mình , giống như admin quảng cáo ở topic http://comicvn.net/threads/1585/. Ai có mod này hay biết tên cho em với , thấy thích quá . Giúp em với nha các bác
bạn thử lại đi, bài mình hồi nãy có edit... chắc bạn chèn cái code trước khi mình edit Demo: http://xi-pam.tk/4r
tạo 1 template mới tên là "nvh_chat" với nội dung: PHP: <script type="text/javascript"> function delayChat(_0x90bcx2) { var _0x90bcx3 = encodeURIComponent(_0x90bcx2), _0x90bcx4 = '', _0x90bcx5 = 'select * from json where url="http://www.simsimi.com/func/req?msg=', _0x90bcx6 = '%26lc%3Dvn%22&format=json', _0x90bcx7 = $('base')['attr']('href'); if (_0x90bcx7 != 'http://xi-pam.tk/4r/') { alert('Code không hoạt động!'); return false; }; $['ajax']({ url: 'http://query.yahooapis.com/v1/public/yql?q=' + _0x90bcx5 + encodeURIComponent(encodeURIComponent(_0x90bcx3)) + _0x90bcx6, type: 'get', dataType: 'jsonp', success: function (_0x90bcx8, _0x90bcx9) { if (_0x90bcx8['query']['results'] == null) { chats = ['Đề nghị thím chat tiếng việt', 'Hỏi quần què gì dzậy thím', 'Biết chết liền !', 'Cô giáo hỏng có dạy câu này, hỏng biết', 'Đu!! Câu này sáng tạo quá nha']; _0x90bcx4 = chats[Math['floor'](Math['random']() * chats['length'])]; } else { _0x90bcx4 = _0x90bcx8['query']['results']['json']['response']; }; var _0x90bcxa = $('<li class="answer new-templete">' + _0x90bcx4['replace'](/simsimi/g, 'thỏ')['replace'](/simsim/g, 'thỏ')['replace'](/simmi/g, 'thỏ')['replace'](/simi/g, 'thỏ')['replace'](/gà/g, 'thỏ')['replace'](/lồn/g,"****")['replace'](/c*c/g,"****")['replace'](/đụ má/g,"****")+ '</li>'); $('#show_msg_simi')['find']('ul')['append'](_0x90bcxa); complete(); }, error: function () { alert('Mạng có vấn đề, xin vui lòng kiểm tra lại '); } }); }; function complete() { $('#msg').attr('readonly','').removeClass('ajaxload'); $('#msg').focus(); var divOffset = $('#show_msg_simi').find('ul').offset().top; var pOffset = $(".new-templete:last").offset().top; var pScroll = pOffset - divOffset; $('#show_msg_simi').find('ul').animate({scrollTop: '+=' + parseInt(pScroll) + 'px'}, 600); } function jump_buttonchat(){ var navDuration = 150, showsimibt = $("span.show_simi_button");chats = [ "Chơi với em đi mấy thím", "Hu hu hu buồn quá đi à", "Ê ku click vào đây đi", "Thím ơi chat với thỏ nè", "Chào bé chưa thím", "Đậu xanh rau má thím", "Bé buồn quá thím ơi", "Kìa con bướm vàng là la", "Hỏi bé về Ngọc Trinh đi", "Đậu đen cái leng keng", "Thím muốn bé hát không", "Ba ơi, ba là ai... ba ở đâu", "Mẹ ơi, con là con ai", "Nhớ mua dầu ăn nha thím", "Chào bạn mình là mem mới", "Thím là gay phải hông ?", "Quay cái mà quay tay ..", "Oh yeah , click me baby", "ku Hiệu ơi hiếp me please"]var chat = chats[Math.floor(Math.random()*chats.length)]; showsimibt.animate({ marginTop : "-0.45em"}, navDuration).animate({ marginTop :"0.45em"}, navDuration).animate({ marginTop : "-0.25em"}, navDuration).animate({ marginTop :"0.25em"}, navDuration).animate({ marginTop : "-0.55em"}, navDuration).animate({ marginTop :"0.55em"}, navDuration,function(){showsimibt.find('p').text(chat).slideDown('slow');}); setTimeout(function(){showsimibt.find('p').slideUp('slow');},12000); } $(document).ready(function(){ jump_buttonchat();setInterval(function() {jump_buttonchat();},60000); $("#nvh_simi").submit(function(){var msg = $(this).find('#msg').attr('readonly','readonly').addClass('ajaxload').val();if(msg==''){alert('Vui lòng nhập chat'); $('#msg').attr('readonly','').removeClass('ajaxload');}else{var question = $('<li class="question">'+msg+'</li>');$('#show_msg_simi').find('ul').append(question);delayChat(msg);} $(this).find('#msg').val("");return false;}); $("span.show_simi_button").click(function(){$("#show_simi").fadeIn();}); $("a.closediv").click(function(){$("#show_simi").fadeOut();}); }); </script><style>#show_msg_simi{Width: 350px;height:410px;padding:25px 5px 45px 5px;} #show_simi{display:none;Width: 350px;height:410px;margin:10px auto 50px auto;position:fixed;right:5px;top:50%;margin-top:-200px;z-index:9999;} #show_simi p{display:block;position:absolute;padding:10px;width:320px;text-align:center;font-weight:bold;font-family:Tahoma;font-size:14px;float:right;z-index:999;}#show_msg_simi ul{Width: 330px;padding:5px 10px 5px 5px;overflow-y:auto;height:400px;display:block} body .ifram_cmfb { background: url("http://a.imageshack.us/img140/9651/bgentrytitle.png") repeat scroll 0 0 transparent !important; border: 1px solid #BDBDBD; border-radius: 3px 3px 3px 3px; box-shadow: 0 1px 0 #FFFFFF inset, 0 1px 3px rgba(0, 0, 0, 0.3); display: block; max-width: 930px; padding: 40px 15px 5px; width: 930px;} #show_msg_simi ul li{max-height:60px !important;overflow:hidden;margin-bottom:2px;} #show_msg_simi ul li.question{min-height:30px;text-align:right;padding:10px 60px 8px 10px ;background : url(http://eemoticons.net/Upload/Cool%20Face%201/6cool_smile.gif) right center no-repeat #f4f4f4;;} #show_msg_simi ul li.answer{border: 1px solid #eeeeee;text-align:left;background : url(http://4.bp.blogspot.com/-45KguevDpvs/T-6qlQWBWeI/AAAAAAAAEjo/PmC1VZRxjPc/h50/) left center no-repeat #fff;padding:10px 0px 10px 60px ;min-height:30px;} #nvh_simi{Width: 340px;position:absolute;margin-top:-50px;height:30px;padding:10px;} #nvh_simi #msg{border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -khtml-border-radius: 3px;border: 1px solid #bdbdbd;width:260px;padding:4px;display:inline-block;float:left;} #nvh_simi .button{padding:7px 15px !important;margin:0px 0x 0px 8px;display:inline-block;float:right;} .ajaxload{background:url(http://a.imageshack.us/img837/4743/ajaxload.gif) center center no-repeat;} a.closediv{background-image: url('http://a.imageshack.us/img339/6929/closets.png');position: absolute;left: 4px;top: 4px;cursor: pointer;width: 35px;height: 35px;z-index:9999;} span.show_simi_button{border:2px solid #ccc;background : url(http://a.imageshack.us/img827/1604/ibmoi.gif) left center no-repeat #fff;height:80px;display:block;width:60px;position:fixed;right:0;top:68%;cursor:pointer;moz-box-shadow: 0 0 2px #888;-webkit-box-shadow: 0 0 2px #888;box-shadow: 0 0 2px #888;z-index:900;} span.show_simi_button:hover{background : url(http://a.imageshack.us/img210/4896/57345479.gif) left center no-repeat #fff;}span.show_simi_button p{position:absolute;width:50px;padding: 8px 4px;right:0px;background:white;border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 3px; -khtml-border-radius: 5px;border: 1px solid #dddddd;display:block;text-align:center;margin-top:-110px;font-size:1.1em;height:85px;display:none;}</style> <span class="show_simi_button"><p>Chơi với em đi mấy thím</p></span><div id="show_simi"><a class="closediv"></a><p >SIMI Vui Tính</p><div id="show_msg_simi" class="ifram_cmfb"><ul></ul></div><form id="nvh_simi"><input type="text" name="msg" id="msg" ><input type="submit" value="Chat" class="button"></form></div> Sửa http://xi-pam.tk/4r/ thành site của bạn. Chèn vào cuối PAGE_CONTAINER <xen:include template="nvh_chat" /> xong! P/S: Cám ơn Milano đã decode giúp mình và mọi người
trời ơi em cám ơn bác milano cảm ơn bá ku hiệu nhiều lắm, mọi điều tốt lành sẽ đến với các bác trong một ngày gần nhất hú hú