có cách nào đưa script và toàn bộ source này về up lên host mình không mod Ku Hiệu ơi hoặc có thể thay đổi cái hình con thỏ khìn khìn kia bằng con nhỏ nào xinh hơn không
à,vấn đề thứ 2 nhìn kỹ cái CSS kia thấy rồi http://a.imageshack.us/img827/1604/ibmoi.gif http://a.imageshack.us/img210/4896/57345479.gif còn vấn đề thứ nhất,full code,full source con thỏ khìn khìn này,Vote Ku Hiệu,sớm ngày ra mắt bản beta1 cũng chơi
Mình cũng bị giống bạn này nè , nó chỉ chạy trong topic, còn ngoài trang chính thì click nó vẫn ko hoạt động
thay toàn bô templates "nvh_chat" đoạn code sau: Mã: <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://www.4teenvt.com/4rum/') { alert('Cứ copy code thoải mái hé hé '); 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ị mày chat tiếng việt', 'Hỏi quần què gì dzậy mày', 'Biết chết liền', 'Cô giáo hỏng có dạy câu này , hỏng biết', 'Đù câu này sáng tạo quá nha', 'Không thể trả lời trong 1 nốt nhạc mày ơi']; _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ỏ') + '</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 = [ "Có ai chơi zới tui hông", "Hu hu hu buồn quá đi à", "Ê ku click vào đây đi", "Lỗ bỏ không sáng giờ nè", "Chào tui chưa zậy he", "Ê,ngó nghiêng cái rì zậy", "Trời mưa mưa thèm quá", "Ô...con chym nào đây", "Hỏi bé về Ngọc Trinh đi", "Đậu đen cái leng keng", "Mình chơi trò vợ chồng đê", "Thèm quá chịu hết nổi rùi", "Mọi người ơi,ba tui là ai zậy", "Cô ba đi chợ đường xa...là lá la", "Chào bạn mình là mem mới", "Way,nhìn như thằng khìn ak", "Quay cái mà quay tay ..", "Oh yeah , click me baby", "Đừng làm em đau nhé hjhj" ] 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); $("#comic_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://clbkythuat.com/forum/styles/default/xenforo/chatvoitho/phongtam.jpg") 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://clbkythuat.com/forum/styles/default/xenforo/chatvoitho/me.gif) right center no-repeat transparent; } #show_msg_simi ul li.answer{ border: 1px solid #eeeeee; text-align:left; background : url(http://clbkythuat.com/forum/styles/default/xenforo/chatvoitho/sex_1.png) left center no-repeat transparent; padding:10px 0px 10px 60px ; min-height:30px; } #comic_simi{ Width: 340px; position:absolute; margin-top:-50px; height:30px; padding:10px; } #comic_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; } #comic_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://clbkythuat.com/forum/styles/default/xenforo/chatvoitho/khoc.gif) left center no-repeat #fff; height:80px; display:block; width:50px; position:fixed; right:0; top:80%; 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://clbkythuat.com/forum/styles/default/xenforo/chatvoitho/cuoi.gif) left center no-repeat #fff; } span.show_simi_button p{ position:absolute; width:40px; 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 anh thợ ơi</p></span> <div id="show_simi"><a class="closediv"></a><p >THÍCH CHỬI NHAU À ???</p> <div id="show_msg_simi" class="ifram_cmfb"><ul></ul> </div> <form id="comic_simi"> <input type="text" name="msg" id="msg" > <input type="submit" value="Chat" class="button"> </form> </div> demo: http://clbkythuat.com
do index của bạn chèn quá nhiều script, thử chuyển cái đoạn Mã: <xen:include template="nvh_chat" /> trong PAGE_CONTAINER vào "footer" xem có bị lỗi không nên backup templates trong PAGE_CONTAINER ra ngoài rồi revert lại nó,sau đó hãy chèn cái Mã: <xen:include template="nvh_chat" /> chạy thử là biết liền