CHINH PHỤC
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Đăng nhập

Ghi nhớ
Latest topics
» Tôi sẽ đỗ đại học!
by vi01239984564 26/8/2024, 7:41 pm

» Kỷ niệm xưa của chúng ta
by nightWalker 9/2/2024, 6:49 pm

» Bị lệch khung cần người giúp đỡ
by webhuy28 7/10/2021, 10:34 pm

» [HỎI ĐÁP] Danh sách bạn bè không thể hiển thị
by anhdaodaica1 2/10/2021, 10:04 pm

» [HỎI ĐÁP] Thông tin tài khoản không thể lưu thay đổi
by anhdaodaica1 2/10/2021, 6:05 am

» Phim bố già full
by huy.pc52 24/8/2021, 12:20 am

» Xin code Box HTML cho Forumvi
by Larva 1/7/2021, 12:57 pm

» Hello Anh Em Chinh phục
by HoàngTửNaivip5p 28/5/2021, 5:03 am

» Trang chủ tin tức cập nhật HOT 2016
by kenbi05 1/1/2020, 11:02 pm

» Không Dang9 bài viết = hình ảnh được
by huy.pc52 30/11/2019, 10:52 am

» CHÚC ANH EM NĂM MỚI VUI VẺ TRÀNG ĐẦY HẠNH PHÚC
by sps.kủn 12/2/2019, 1:16 pm

» Skin CNTT-K3 2015 (Full Mod)[✔]
by kenbi05 6/7/2018, 12:30 am

» baivong, handsome,....
by sps.kủn 29/6/2018, 1:54 pm

» [SHARE] SKIN ĐHFM.V7 @PUNBB
by tonyhoaivu 2/5/2018, 2:37 pm

» Share Skin Xanh Dương Cùi Bắp
by tonyhoaivu 28/4/2018, 5:57 pm

» Xin Skin http://v1.hotrofm.net/
by tonyhoaivu 28/4/2018, 5:45 pm

» Xin Skin Rao Vặt
by tonyhoaivu 15/4/2018, 12:07 pm

» Làm Sao Để Xóa Khung Này
by tonyhoaivu 14/4/2018, 7:18 pm

» [Lập nhóm]Lập nhóm fm
by vietkanpy 31/3/2018, 11:53 am

» [Help] về server úp ảnh của phutu [✔]
by baivong 17/3/2018, 10:18 pm

» Đừng khóc cho “tôi – Chinh Phục!”…
by AnHung 27/2/2018, 5:33 pm

» [Share] Skin Diendandaihoc.com [ Punbb ] [✔]
by Lu Mờ 13/2/2018, 7:28 pm

» Mời mấy thím vào groups Forumotion Việt Nam.
by dang02315 13/2/2018, 12:40 am

» Có thể làm các kiểu giao diện được không?
by Lu Mờ 9/2/2018, 3:40 pm

» ltns chinhphuc.info
by Shinichi Kudo 27/1/2018, 2:27 am

Top posting users this week
No user


[help] avatar ngoài index hiện ở 1 số box thôi

2 posters

Go down

[help] avatar ngoài index hiện ở 1 số box thôi Empty [help] avatar ngoài index hiện ở 1 số box thôi

Bài gửi by minhphong9x94 28/3/2013, 11:02 pm

demo: http://trieutraitim.123.st/
avatar chỉ hiện ở trên 1 số box bên trên
ai biết cách fix hay có code hay hơn giúp mình với.
code mình dùng kèm code js last:
Code:
function openWin(a,b,c){width=b;height=c;top_val=(screen.height-height)/2-30;0>top_val&&(top_val=0);left_val=(screen.width-width)/2-18;window.open(a,null,"toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,width="+width+",height="+height+", top="+top_val+",left="+left_val)};var versionMinor=parseFloat(navigator.appVersion);var versionMajor=parseInt(versionMinor);var IE=document.all&&!window.opera&&versionMajor<7;var IE7=document.all&&!window.opera&&versionMajor>=7;var OP=window.opera;var FF=document.getElementById;var NS=document.layers;function get_item(name,opener){if(IE){return(opener)?window.opener.document.all[name]:document.all[name]}else if(FF){return(opener)?window.opener.document.getElementById(name):document.getElementById(name)}else if(NS){return(opener)?window.opener.document.layers[name]:document.layers[name]}}function change_display(name,value,opener){if(IE){element=(opener==true)?window.opener.document.all[name].style:document.all[name].style}else if(FF){element=(opener==true)?window.opener.document.getElementById(name).style:document.getElementById(name).style}else if(NS){element=(opener==true)?window.opener.document.layers[name]:document.layers[name]}element.display=value}function reverse_display(name,opener){element=get_item(name);if(!element){return false}var display=(element.style.display!='block')?'block':'none';change_display(name,display,opener)}var current_tooltip;function show_tooltip(caller,content,content_title){var current_tooltip=get_item('tooltip');if(!current_tooltip){var current_tooltip=document.createElement('div');current_tooltip.setAttribute('id','tooltip');document.body.appendChild(current_tooltip)}current_tooltip.style.zIndex=100;current_tooltip.style.position='absolute';if(content_title){content='<p class="header">'+content_title+'</p><p>'+content+'</p>'}else{content='<p>'+content+'</p>'}current_tooltip.innerHTML=content;current_tooltip.style.visibility='visible';caller.onmousemove=move_tooltip;caller.onmouseout=function(){current_tooltip.style.visibility="hidden"};caller.title=''}var offsetxpoint=-60;var offsetypoint=20;var real_body=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;real_body=(document.documentElement)?document.documentElement:document.body;function move_tooltip(e){var curX=(!IE)?e.pageX:event.clientX+real_body.scrollLeft;var curY=(!IE)?e.pageY:event.clientY+real_body.scrollTop;var rightedge=IE&&!window.opera?real_body.clientWidth-event.clientX-offsetxpoint:window.innerWidth-e.clientX-offsetxpoint-20;var bottomedge=IE&&!window.opera?real_body.clientHeight-event.clientY-offsetypoint:window.innerHeight-e.clientY-offsetypoint-20;var leftedge=(offsetxpoint<0)?offsetxpoint*(-1):-1000;current_tooltip=get_item('tooltip');if(rightedge<current_tooltip.offsetWidth)current_tooltip.style.left=IE?real_body.scrollLeft+event.clientX-current_tooltip.offsetWidth+"px":window.pageXOffset+e.clientX-current_tooltip.offsetWidth+"px";else if(curX<leftedge)current_tooltip.style.left="5px";else current_tooltip.style.left=curX+offsetxpoint+"px";if(bottomedge<current_tooltip.offsetHeight)current_tooltip.style.top=IE?real_body.scrollTop+event.clientY-current_tooltip.offsetHeight-offsetypoint+"px":window.pageYOffset+e.clientY-current_tooltip.offsetHeight-offsetypoint+"px";else current_tooltip.style.top=curY+offsetypoint+"px"}function searchtopic(nguonF,soF,dichF){$("#proLastLoad").show();$.ajax({url:nguonF,success:function(data){var chondulieu=".topic-title:not('.topic-title:contains('»')'):lt("+soF+")";if($(data).find(chondulieu).length==0){$(dichF).html('<p><font face="Courier New"><font color="red">Không tìm thấy bài viết.</font></font></p>');$("#proLastLoad").hide()}else{$("#proLastLoad").hide();$("#recentnew .latest_topics").empty();$(data).find(chondulieu).find(".topictitle, .tooltipFMvi").appendTo(dichF);$(dichF+' .topictitle').wrap("<li></li>");var ti;for(ti=0;ti<soF;ti++){var it=$(dichF+' a.topictitle:eq('+ti+')');var lastUx=it.parent().next().find('p:eq(6)>strong').html();var linkUx=it.parent().next().find(".lastlink-FMvi a").attr("href");var trangthai=it.parent().next().find('p:eq(3)>font').text();var chuyenmuc=it.parent().next().find('p:eq(2)>font').html();var traloi=it.parent().next().find('p:eq(5)>font').html();var luotxem=it.parent().next().find('p:eq(4)>font').html();if(langEV()){var dabikhoa="This topic is locked";var dacomoi="New posts"}else{var dabikhoa="Chủ đề này đã bị khóa";var dacomoi="Bài viết mới"}if(trangthai.search(dabikhoa)!=-1){var imgUx='http://i48.servimg.com/u/f48/16/58/89/73/locked10.png'}else if(trangthai.search(dacomoi)!=-1){var imgUx='http://i48.servimg.com/u/f48/16/58/89/73/post_n10.gif'}else{var imgUx='http://i48.servimg.com/u/f48/16/58/89/73/post_o10.png'};it.replaceWith('<span onmouseover="show_tooltip(this, $(this).parents('li').next().html(), 'Thông tin bài viết')" class="leftrecent"><a href="'+linkUx+'" class="topictitle">'+it.text()+'</a></span><span class="imgstatus"><img width="10px" src="'+imgUx+'" /></span><span class="rightrecent">'+lastUx+'</span><span class="showpost"><a class="firstTopic" onclick="openWin(this.href.replace('#', '?showpost='), 1000, 500);return false" href="'+linkUx+'"> ▼</a></span><span class="viewfmvi"><b><font color=#99bf00>'+luotxem+'</font></b></span><span class="repfmvi"><b><font color=#ff8a00>'+traloi+'</font></b></span><span class="lastcate">'+chuyenmuc+'</span>')}}},error:function(jqXHR,textStatus,errorThrown){$(dichF).html('<p><font face="Courier New"><font color="red">Có lỗi xảy ra trong quá trình tải dữ liệu.</font></font></p>')}})}$(function(){searchtopic('/search?search_keywords=&search_author=*_*','22','#recentnew ul');$("#changeviewrep").change(function(){$(".viewrep").hide();$("#"+$(this).val()).show()});$("#changeposter").change(function(){$(".top-vi").hide();$("#"+$(this).val()).show()});var u;for(u=0;u<20;u++){var numelat=$(".rightnumber:eq("+u+")");numelat.text(numelat.text().slice(numelat.text().lastIndexOf("-")+1))}$("#left").fadeIn(1000);$("#changeFMvi").html($("#pun-about select[name='selected_id']").html())});$(".numtopF").each(function(){$(this).text($(this).text().match(/[0-9]+/))});$(document).ready(function(){$('.statused .tdtopics').each(function(s){$(this).prepend('<div id="avatar-subforo'+s+'" class="avatar-index avatar-subforo"><div>');var b=this.getElementsByTagName('a')[1].href;$('#avatar-subforo'+s).load(b+' .module .main-content.clearfix.center:eq(0) img:eq(0)')});$('.statused .tcr').each(function(i){$(this).prepend('<div id="avatar-index'+i+'" class="avatar-index"><div>');var a=this.getElementsByTagName('a')[1].href;$('#avatar-index'+i).load(a+' .module .main-content.clearfix.center:eq(0) img:eq(0)')})});jQuery("#emoclik").click(function(){jQuery(this).hide();jQuery("#emoclik2").show();jQuery("#c3z_lovemess").animate({height:"-=50"},2000);jQuery.ajax({type:"POST",url:"/h3-",success:function(emo){jQuery("#xong").html(emo).show("slow")}})});jQuery("#emoclik2").click(function(){jQuery(this).hide();jQuery("#emoclik").show();jQuery("#c3z_lovemess").animate({height:"+=50"},2000);jQuery.ajax({type:"POST",url:"/h3-",success:function(emo){jQuery("#xong").html(emo).hide("slow")}})});function dongtimo(){var t=setTimeout("reloadgiumcon()",500)}function reloadgiumcon(){window.location.replace("/")}jQuery("#security").load("/post?f=3&mode=newtopic input[name^=auth]");
mình cảm ơn
minhphong9x94
minhphong9x94
CPPurpleMember
CPPurpleMember

Firefox PhpBB2
Ngày đăng ký : 09/02/2013
Số bài : 605
CPP : 56
Châm ngôn sống : Mãi Không Quên No.1

http://maikhongquen.com

Về Đầu Trang Go down

[help] avatar ngoài index hiện ở 1 số box thôi Empty Re: [help] avatar ngoài index hiện ở 1 số box thôi

Bài gửi by anhdausai 29/3/2013, 12:32 am

tất cả các box đều phải có bài viết, nếu box nào ko có bài thì avatar sẽ dừng ở box đó và các box dưới sẽ ko có avatar
anhdausai
anhdausai
CPMember
CPMember

Chrome PunBB
Ngày đăng ký : 24/08/2011
Số bài : 230
CPP : 284
Châm ngôn sống : Không có code vô dụng chỉ có người ngu không biết sử dụng code

http://www.vngame.pro/

Về Đầu Trang Go down

[help] avatar ngoài index hiện ở 1 số box thôi Empty Re: [help] avatar ngoài index hiện ở 1 số box thôi

Bài gửi by minhphong9x94 29/3/2013, 1:09 pm

oh hay. thanks nhá. mong là sẽ như vậy.
minhphong9x94
minhphong9x94
CPPurpleMember
CPPurpleMember

Firefox PhpBB2
Ngày đăng ký : 09/02/2013
Số bài : 605
CPP : 56
Châm ngôn sống : Mãi Không Quên No.1

http://maikhongquen.com

Về Đầu Trang Go down

[help] avatar ngoài index hiện ở 1 số box thôi Empty Re: [help] avatar ngoài index hiện ở 1 số box thôi

Bài gửi by Sponsored content


Sponsored content


Về Đầu Trang Go down

Về Đầu Trang

- Similar topics

 
Permissions in this forum:
Bạn không có quyền trả lời bài viết