| | | THÔNG TIN CÁ NHÂN Bài viết : 30 Points : 65 Uy tín : 0 | |
|
|
|
| | | | | | - Code:
<style> #DL_LastTopic,.DL_TooltipCCM{position:absolute;display:none;background-image:url(http://i48.servimg.com/u/f48/13/58/60/43/opacit10.png);padding:10px 20px;border-radius:5px;color:white;z-index:99;} .DL_Tooltip {display:none;} .TrangTruoc,.TrangSau{font:12px Courier;cursor:pointer;color:red;position:absolute;top:-29px;height:30px;width:30px;opacity:0.6;} .TrangTruoc:hover,.TrangSau:hover{opacity:1;} .TrangTruoc{right:40px;background:url(http://i48.servimg.com/u/f48/16/58/89/73/fancy_12.png) no-repeat;} .TrangSau{right:10px;background:url(http://i48.servimg.com/u/f48/13/58/60/43/fancy_10.png) no-repeat;} #Chon_LTopic{position:absolute;top:-30px;border:0;height:25px!important;left:11px;background:#627AAD;color:#DEDFDF;} .spanphai,.spanphailtp,.spanphaiccm{float:right;white-space:nowrap;width:45%;text-align:right;} .spanphai{width:30%;} .ccmvds{height:16px;} .tenltp,.tenccm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:55%;float:left;text-transform:capitalize;} #main-rf-content{position:relative;} </style> <!-- BEGIN classical_row --> <div class="module main bphai"> <div class="main-head"><h3 id="TenLasttopic">Bài gửi sau cùng</h3></div> <div class="main-content" id="main-rf-content"> <div id="rf-content"> <!-- BEGIN recent_topic_row --> <div class="ltpvds"> <span class="tenltp">♥ <a href="{classical_row.recent_topic_row.U_TITLE}">{classical_row.recent_topic_row.L_TITLE}</a></span> <span class="spanphailtp">{ON} <span class="ktthg">{classical_row.recent_topic_row.S_POSTTIME}</span> {BY}
<!-- BEGIN switch_poster --> <a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a> <!-- END switch_poster -->
<!-- BEGIN switch_poster_guest --> {classical_row.recent_topic_row.switch_poster_guest.S_POSTER} <!-- END switch_poster_guest -->
<!-- <a href="{classical_row.recent_topic_row.U_POSTER}">{classical_row.recent_topic_row.S_POSTER}</a> {ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br /> --> </span> </div> <!-- END recent_topic_row --> </div> <div id="TuyChonLastTopic"> <div class="TrangTruoc" title="Tải dữ liệu trang trước"></div><div class="TrangSau" title="Tải dữ liệu trang tiếp theo"></div> <select id="Chon_LTopic"> <option value="Bài gửi sau cùng">Bài gửi sau cùng</option> <option value="Bài chưa ai trả lời">Bài chưa ai trả lời</option> <option value="Bài mới từ lần truy cập trước">Bài mới từ lần truy cập trước</option> <option value="Bài có bạn tham gia thảo luận">Bài có bạn tham gia thảo luận</option> </select> </div> </div> <div id="DL_LastTopic"></div> </div> <!-- END classical_row --> <script type="text/javascript"> //<![CDATA[ $('#rf-content .tenltp a').each(function(){ $(this).attr('href',$(this).attr('href').split('#')[0]); }); t_lasttopic=0; $('.TrangTruoc').hide(); $('.TrangTruoc').click(function(){TooltipVDS(-1);}); $('.TrangSau').click(function(){TooltipVDS(1);}); linklasttopic='/search?search_author=%2A&search_keywords&start='; if (!$('#logout').is(':visible'))$('#Chon_LTopic').hide(); $('#Chon_LTopic').change(function(){ $('#TenLasttopic').text($(this).val()); if ($(this).val()=='Bài gửi sau cùng') { linklasttopic='/search?search_author=%2A&search_keywords&start='; t_lasttopic=1; TooltipVDS(-1); } else if ($(this).val()=='Bài chưa ai trả lời') { linklasttopic='/search?search_id=unanswered&start='; t_lasttopic=1; TooltipVDS(-1); } else if ($(this).val()=='Bài mới từ lần truy cập trước') { linklasttopic='/search?search_id=newposts&start='; t_lasttopic=1; TooltipVDS(-1); } else if ($(this).val()=='Bài có bạn tham gia thảo luận') { linklasttopic='/search?search_id=egosearch&start='; t_lasttopic=1; TooltipVDS(-1); } }); $('#DL_LastTopic').ajaxStart(function(){$('#TuyChonLastTopic').fadeOut();}); $('#DL_LastTopic').ajaxComplete(function(){$('#TuyChonLastTopic').fadeIn();}); function TooltipVDS(trang_lt){ t_lasttopic+=trang_lt; if (trang_lt!=0) $('#rf-content').html('<img src="http://i48.servimg.com/u/f48/13/58/60/43/loadin15.gif"></img>'); $('#DL_LastTopic').load(linklasttopic+t_lasttopic*10+' form.frm-form .main-content .table .statused tr:lt(10)',function(){ if ($('#DL_LastTopic').is(':empty')) { $('#rf-content').text('Hết dữ liệu'); $('.TrangSau').hide(); } else { $('.TrangSau').fadeIn(); if (trang_lt!=0) $('#rf-content').empty(); $('#DL_LastTopic tr').each(function(index){ if (trang_lt!=0) { $('<div class="ltpvds"></div>').appendTo('#rf-content'); $('<div class="tenltp"></div>').html('♥ '+$(this).find('td:first .topic-title').html()).appendTo('.ltpvds:last'); $(this).find('td:eq(4) a:last').remove(); $('<div class="spanphailtp"></div>').html($(this).find('td:eq(4)').html()).appendTo('.ltpvds:last'); t_lasttopic>0 ? $('.TrangTruoc').fadeIn() : $('.TrangTruoc').hide(); } $('<div class="DL_Tooltip"></div>').appendTo('#DL_LastTopic'); $('<div></div>').html('Tiêu đề: <font color="yellow">'+$(this).find('td:first a.topictitle').text()+'</font>').appendTo('.DL_Tooltip:last'); $('<div></div>').html('Chuyên mục: <font color="crimson"><b>'+$(this).find('td:eq(1)').text()+'</b></font>').appendTo('.DL_Tooltip:last'); $('<div style="border-top:1px dotted white;padding-top:5px;margin-top:5px;"></div>').html('Người sáng lập: '+$(this).find('td:first a.gensmall').html()).appendTo('.DL_Tooltip:last'); $('<div></div>').html('Người gửi cuối: '+$(this).find('td:eq(4) a.gensmall').html()).appendTo('.DL_Tooltip:last'); $(this).find('td:eq(4) a.gensmall').remove(); guicuoi=$(this).find('td:eq(4)').text().replace(' by',''); $('<div></div>').html('Thời gian gửi: <font color="cyan">'+guicuoi+'</font>').appendTo('.DL_Tooltip:last'); $('<div style="padding-top:5px;"></div>').html('Trạng thái: <font color="chartreuse">'+$(this).find('td:first .status img').attr('alt').replace('New posts','Có bài viết mới').replace('No new posts','Không có bài viết mới').replace('This topic is locked','Chủ đề này đã bị khóa')+'</font>').appendTo('.DL_Tooltip:last'); $('<div style="border-bottom:1px dotted white;padding-bottom:5px;margin-bottom:5px;"></div>').html('Có <font color="yellow"><b>'+$(this).find('td:eq(3)').text()+'</b></font> lượt người xem và <font color="cyan"><b>'+$(this).find('td:eq(2)').text()+'</b></font> bài trả lời').appendTo('.DL_Tooltip:last'); $(this).find('td:first img[alt*="posted in this topic"]').length ? $('<div></div>').html($(this).find('td:first img[alt*="posted in this topic"]').attr('alt').replace('You have posted in this topic.','<font color="cyan">Bạn đã tham gia thảo luận tại chủ đề này</font>').replace('You have not posted in this topic.','<font color="red">Bạn chưa tham gia thảo luận tại chủ đề này</font>')).appendTo('.DL_Tooltip:last') : $('<div></div>').html('<font color="red">Bạn chưa tham gia thảo luận tại chủ đề này</font>').appendTo('.DL_Tooltip:last'); $(this).remove(); }); } }); }
$(window).load(function(){ if ($('#DL_LastTopic').is(':empty')) { $('#DL_LastTopic').html('<img src="http://i48.servimg.com/u/f48/13/58/60/43/gsnjnw10.gif"></img>'); TooltipVDS(0); } }); $('#rf-content .tenltp a').live('mouseenter',function(){ if ($('#DL_LastTopic').is(':empty')) { $('#DL_LastTopic').html('<img src="http://i48.servimg.com/u/f48/13/58/60/43/gsnjnw10.gif"></img>').ajaxComplete(function(){$('#DL_LastTopic .DL_Tooltip').filter(':eq('+$(this).parent().parent().index()+')').show();}); TooltipVDS(0); } $('#DL_LastTopic').show(); $('#DL_LastTopic .DL_Tooltip').hide(); $('#DL_LastTopic .DL_Tooltip').filter(':eq('+$(this).parent().parent().index()+')').show(); $(this).live('mousemove',function(event){$('#DL_LastTopic').css({'left':event.pageX-30,'top':event.pageY+30});}); }); $('#rf-content .tenltp a').live('mouseleave',function(){$('#DL_LastTopic').hide();}); //]]> </script> <script type="text/javascript">function searchtopic(nguonF, soF, dichF) {$("#proLastLoad").show();$.ajax({url: nguonF,success: function (data) {$("#proLastLoad").hide();$("#recentnew .latest_topics").empty();$(data).find(".topic-title:not('.topic-title:contains(\'»\')'):lt(" + soF + ")").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 popupUx = it.parent().next().find(".lastlink-FMvi a").attr("href");var trangthai = it.parent().next().find('p:eq(3)>font').text();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).parent().next().html(), \'FMvi.Org\')" class="leftrecent"><a href="' + it.attr("href") + '" class="topictitle">' + it.text() + '</a></span><span class="imgstatus"><img width="10px" src="' + imgUx + '" /><a class="firstTopic" href="' + popupUx + '"><span style="line-height: 18px; font-size: 9px;"> ▼</span></a></span><span onmouseover="show_tooltip(this, \'Click để xem thông tin thành viên này\', \'FMvi.Org\')" class="rightrecent">' + lastUx + '</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 searchuser(nguonU, soU, dichU) {$("#loaUser").show();$.ajax({url: nguonU,success: function (data) {$("#loaUser").hide();$("#top_posters .latest_topics").empty();$(data).find(".dataUserFmvi:lt(" + soU + ")").appendTo(dichU);$(dichU + ' .dataUserFmvi').wrap("<li></li>");var g;for (g = 0; g < 20; g++) {var ggg = $(dichU + " .dataUserFmvi:eq(" + g + ")>span:first");ggg.replaceWith("<span onmouseover=\"show_tooltip(this, $(this).next().html(), 'FMvi.Org')\" style=\"position: absolute; left: 0pt;\">" + ggg.html() + "</span>")}},error: function (jqXHR, textStatus, errorThrown) {$(dichU).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>');}});}searchuser('/memberlist?mode=overall_posters', '12', '#top_posters ul');$("#left").fadeIn(1000);$(function(){$("#changeFMvi").html($("#jumboxFMvi select").html());});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 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 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;</script> | | | | |
|
|