viewtopic_body dọc ( có đóng khung thông tin ,avata, re chột vào avata ngay ngắn lại )

Trang ChínhLatest imagesTìm kiếmĐăng kýĐăng Nhập


Welcome to Forums Haku
Chào mừng các bạn đến với diễn đàn
Chúc các bạn có những giờ phút thư giãn thoải mái tại diễn đàn
Chúc các bạn luôn thành công trong cuộc sống

<--Code by Admin Haku -->

Share|
Tiêu đề

viewtopic_body dọc ( có đóng khung thông tin ,avata, re chột vào avata ngay ngắn lại )

Xem chủ đề cũ hơn Xem chủ đề mới hơn Go down
Tác giảThông điệp

Admin
Member
Admin

Tổng bài gửi : 1074
Được Cảm Ơn : 538
Đến từ : Hà Ná»™i
Tài năng của Admin
Hạng: Member
Level:1074
Tài năng:/300


Tài Sản
Huân Chương: PhotobucketPhotobucketPhotobucketPhotobucketPhotobucketPhotobucketPhotobucketPhotobucketPhotobucket

Bài gửiTiêu đề: viewtopic_body dọc ( có đóng khung thông tin ,avata, re chột vào avata ngay ngắn lại ) viewtopic_body dọc ( có đóng khung thông tin ,avata, re chột vào avata ngay ngắn lại ) 3e45c23a204Fri Apr 27, 2012 2:31 pm

Chèn vào wiewtoic_boy

Demo: viewtopic_body dọc ( có đóng khung thông tin ,avata, re chột vào avata ngay ngắn lại ) Untitled-3

Code:
<script type="text/javascript">
//<![CDATA[
var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}';
var multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}';
//]]>
</script>

<table width="100%" border="0" cellspacing="2" cellpadding="0">

<tr>
<td align="left" valign="middle" nowrap="nowrap">
<span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle"

border="0" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authreply -->
</span>
</td>
<!-- BEGIN insert_plus_menu -->
<td align="right" valign="bottom" nowrap="nowrap" width="100%">
<span class="smallfont bold">
<script type="text/javascript">
//<![CDATA[
insert_plus_menu('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
//]]>
</script>
</span>
</td>
<!-- END insert_plus_menu -->
</tr>
</table>
<br />
<table class="tborder" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr align="right">
<td class="catHead" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9%" class="tcat" height="28"></td>
<td align="center" nowrap="nowrap" class="tcat"><!-- google_ad_section_start -->{TOPIC_TITLE}<!--

google_ad_section_end --></td>
<td align="right" nowrap="nowrap" width="9%" class="tcat"><a

href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> <a href="#bottom">{L_GOTO_DOWN}</a> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt1" colspan="2" align="right" valign="top"><span class="smallfont">{PAGINATION}</span></td>
</tr>

{POLL_DISPLAY}
<!-- BEGIN postrow -->
<!-- BEGIN displayed -->
<table class="tborder" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr><td class="thead" height="20" colspan="3"><span class="smallfont"> <img src="{postrow.displayed.MINI_TIME_IMG}"

alt="" border="0" />{postrow.displayed.POST_DATE}</span></td></tr>
<tr class="post">
<td class="alt2" valign="top" width="200" colspan="3">


<table cellpadding="0" cellspacing="6" border="0" width="100%">
<tr>


<td class="alt2">


<table width="197" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:0px;">
<tr>
<td width="36" height="25" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_01.gif"></td>
<td width="143" height="25" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_02.gif"></td>
<td width="18" height="25" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_03.gif"></td>
</tr>
<tr>
<td width="36" height="42" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_04.gif"></td>
<td width="143" height="42" style="background:url(http://www.fileden.com/files/2009/2/13/2319435/statusbgr.gif)" align="center" class="smallfont">
<em id="vbstatus_11698847" style="color:#FEFFB4">
</em>
</td>
<td width="18" height="40" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_06.gif"></td>
</tr>
<tr>
<td width="36" height="40" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_07.gif"></td>
<td width="143" height="40" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_08.gif"></td>
<td width="18" height="40" background="http://www.fileden.com/files/2009/2/13/2319435/chuan_09.gif"></td>
</tr>
</table>



<!-- BEGIN-----AVATA --><table cellSpacing="0" cellPadding="0" border="0" style="width:auto">
<td style="padding: 0px"><img src=" http://i421.photobucket.com/albums/pp296/cuachung/ava_01.png "></td>
<td style="padding: 0px" background=" http://i421.photobucket.com/albums/pp296/cuachung/ava_02.png "></td>
<td style="padding: 0px"><img src=" http://i421.photobucket.com/albums/pp296/cuachung/ava_03.png "></td>
</tr>
<tr>
<td valign="top" style="padding: 0px" background=" http://i421.photobucket.com/albums/pp296/cuachung/ava_04.png ">
<td style="padding: 0px; background-color: #ffffff" bgColor="#ffffff">
{postrow.displayed.POSTER_AVATAR}
</td>
<td style="padding: 0px" background=" http://i421.photobucket.com/albums/pp296/cuachung/ava_06.png "></td>
</tr>
<tr>
<td style="padding: 0px"><img src=" http://i421.photobucket.com/albums/pp296/cuachung/ava_07.png "></td>
<td style="padding: 0px" background=" http://i421.photobucket.com/albums/pp296/cuachung/ava_08.png "></td>
<td style="padding: 0px"><img src=" http://i421.photobucket.com/albums/pp296/cuachung/ava_09.png "></td>
</table>
<!-- ENDE-----AVATA -->
</td>
<td align="left" width="55%">

<a name="{postrow.displayed.U_POST_ID}"></a><strong><font color=green>♥•๑۩۞۩๑•♥</font> : {postrow.displayed.POSTER_NAME}</strong><br />

<span class="smallfont">
<strong><div style="text-align: center; background-color: rgb(255, 255, 0);"><span class="Apple-style-span" style="font-family: 'Comic Sans MS';">{postrow.displayed.POSTER_RANK}</span></div></strong><br>
{postrow.displayed.RANK_IMAGE}
</span>
<table cellspacing="0"
cellpadding="0"><tr><td
class="onlinetest">{postrow.displayed.ONLINE_IMG}</td></tr></table>
</td>




<td align="left" width="30%"><span class="smallfont">
<div>
<div class="postprofile" align="left">
<span style="font-size:11px;font-family:Tahoma;font-weight:normal;">
<div class="postprofile" align="left">
<span style="font-size:11px;font-family:Tahoma;font-weight:normal;">
<div class="postprofile" align="left">
<span style="font-size:11px;font-family:Tahoma;font-weight:normal;">
<div class="postprofile" align="left">
<span style="font-size:11px;font-family:Tahoma;font-weight:normal;">
<div style="margin:20px; margin-top:5px"><div style="font:
12px Verdana, Geneva, Lucida, 'Lucida Grande';
margin-bottom:2px"><b></b> <input type="button"
value="Xem thông tin"
style="width:140px;font-size:14px;margin:0px;padding:0px;" onclick="if
(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
!= '') {
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
= ''; this.innerText = ''; this.value = 'Ẩn thông tin'; } else {

this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
= 'none'; this.innerText = ''; this.value = 'Xem lại thông tin'; }"
/></div><div style="min-height: 0px; max-width: 160px;
background-color: transparent; margin: 0px; padding: 0px; border: 0px
inset;"><div style="display: none;">
<div class="postprofile" align="left">
<span style="font-size:11px;font-family:Tahoma;font-weight:normal;">
<!-- BEGIN profile_field -->
<div style="padding: 2px;"><div style="padding: 3px; border: 1px #3a3a3a dashed;">
{postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}</div></div>
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</span><br></div>
</b>
</span><br />
<img src="http://www.fileden.com/files/2009/2/13/2319435/vide.gif" alt="" style="width: 200px; height: 1px;" /></td>
</tr></table>
</td>

</tr>
<td height="27" width=100% background="http://www.fileden.com/files/2009/2/13/2319435/p310.gif" colspan=3>
</td>
<tr>
<td class="alt1" valign="top" width="100%" height="28" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>



<td><span class="smallfont"><img src="{postrow.displayed.MINI_POST_IMG}" alt="{postrow.displayed.L_MINI_POST_ALT}"

title="{postrow.displayed.L_MINI_POST_ALT}" border="0" />{L_POST_SUBJECT}: {postrow.displayed.POST_SUBJECT}</span></td>
<td align="right" valign="top" nowrap="nowrap" class="post-options">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" nowrap="nowrap">

<!--start post cảm ơn you hack-->


<!-- BEGIN switch_vote_active -->
<div class="vote gensmall">
<!-- BEGIN switch_vote -->

<div class="vote-button"><a class="thumbnail" href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}"><img src="http://i899.photobucket.com/albums/ac197/mactoingaodu2001_2009/post_thanks-1.gif" id="Thanks button" border="0" alt="Cảm ơn người này" vspace="1" /></a>

</a>

</div>

<!-- END switch_vote -->
</div>
<!-- END switch_vote_active -->

<!-- BEGIN switch_vote_active -->
<div class="vote gensmall">
<!-- BEGIN switch_vote -->

<div class="vote-button">
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}"></a></div>
<!-- END switch_vote -->
</div>
<!-- END switch_vote_active -->

<!--end post cảm ơn you hack-->

{postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG} {postrow.displayed.WWW_IMG}

{postrow.displayed.AIM_IMG} {postrow.displayed.YIM_IMG} {postrow.displayed.MSN_IMG} {postrow.displayed.SKYPE_IMG}
<script type="text/javascript"><!--
if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 &amp;&amp; navigator.userAgent.indexOf('5.') == -1 &amp;&amp;

navigator.userAgent.indexOf('6.') == -1 ) {
document.write('{postrow.displayed.ICQ_IMG}');
} else {
document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div

style="position:absolute">{postrow.displayed.ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{postrow.displayed.ICQ_STATUS_IMG}</div></div>');
}
//-->
</script>
<noscript>{postrow.displayed.ICQ_IMG}</noscript>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="hr">
<hr />
</td>
</tr>
<tr>
<td colspan="2"><!-- google_ad_section_start --><tr>
<td colspan="2">



<!-- google_ad_section_start -->

<table cellpadding="0" cellspacing="0" width="100%" align="center"> <tr> <td><img src="http://i14.servimg.com/u/f14/14/04/65/68/post_t10.png" alt="" /></td> <td style="background: url(http://i14.servimg.com/u/f14/14/04/65/68/post_t11.png) repeat-x top left" width="100%"> </td> <td><img src="http://i14.servimg.com/u/f14/14/04/65/68/post_t12.png" alt="" /></td> </tr> <tr> <td style="background: url(http://i14.servimg.com/u/f14/14/04/65/68/post_s10.png) repeat-y top left" valign="bottom"> </td> <td>


<font color=red>Tiêu Đề : </font> {TOPIC_TITLE}<br><br>

<font color=blue>Http://HAKU.4RUMER.COM - Kết Nối Cộng Đồng Giải Trí Online</font></strong><br>--------------------------------------------------<br></center>
<div>{postrow.displayed.MESSAGE}</div>


</td> <td style="background: url(http://i14.servimg.com/u/f14/14/04/65/68/post_s11.png) repeat-y top right" valign="bottom"> </td> </tr> <tr> <td><img src="http://i14.servimg.com/u/f14/14/04/65/68/post_f12.png" alt="" /></td> <td style="background: url(http://i14.servimg.com/u/f14/14/04/65/68/post_f11.png) repeat-x top left" width="100%"> </td> <td><img src="http://i14.servimg.com/u/f14/14/04/65/68/post_f10.png" alt="" /></td> </tr> </table>
<p align="center">
<!-- google_ad_section_end -->




<!-- BEGIN switch_signature -->
<div class="sig-content">
<div><div style="margin: auto;width: 100%;"><div style="margin: auto;width: 100%;"><fieldset style="border: 1px dashed #309100;width: 95%;"><legend class="signtop">Chữ kí của {postrow.displayed.POSTER_NAME}</legend><div style="overflow: auto; max-height: 150px;"><center><div class="signature_div">
{postrow.displayed.SIGNATURE}
</div></center></div></fieldset></fieldset><br></div></div><br></div></div></fieldset><span class="gensmall"></span>

</div>
<!-- END switch_signature -->


<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD class="postbit_br" bgcolor="#FFFFFF">
<p align="center"><b><font color="red"><span class="smallfont">Copy đường link dưới đây gửi đến nick yahoo bạn bè!</span></p></font>
<p align="center"><textarea style="max-width: 500px; max-height: 35px" rows="2" name="embedhtml" cols="100" readonly="readonly" onclick="this.select()" id="embedhtml">Hay quá nè :{TOPIC_TITLE}. Nhấn Vào Đây Coi Lẹ Đi http://haku.forumvi.net{TOPIC_URL} Các Bạn Gửi Link Này Cho Bạn Bè Nhá</textarea></center>
</TD></TR>
</table>
</center>

<br/>



<span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span>
</td>
</tr></p>
</table>
<div align="right" width="100%">{postrow.displayed.THANK_IMG}
{postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}</div>
</td>
</tr>
</table><br />
<!-- END displayed -->
<!-- BEGIN hidden -->
<table class="tborder" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="postdetails {postrow.hidden.ROW_CLASS}" colspan="2" align="center">{postrow.hidden.MESSAGE}</td>
</tr></table><br />
<!-- END hidden -->
<!-- END postrow -->
<!-- BEGIN no_post -->
<table class="tborder" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr align="center">
<td class="alt1" colspan="2" height="28">
<span class="smallfont">{no_post.L_NO_POST}</span>
</td>
</tr></table>
<!-- END no_post -->


<table class="tborder" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr align="right">
<td class="tfoot" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9%"></td>
<td align="center" nowrap="nowrap"><a name="bottomtitle"></a><h1 class="cattitle">{TOPIC_TITLE}</h1></td>
<td align="right" nowrap="nowrap" width="9%"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a

href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> <a href="#top">{L_BACK_TO_TOP}</a> </td>
</tr>
</table>
</td>
</tr>
</table>

<table class="tborder" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="alt2" valign="top" {COLSPAN_PAGINATION} width="150"><span class="smallfont">{PAGE_NUMBER}</span></td>
<!-- BEGIN topicpagination -->
<td class="alt1" align="right" valign="top"><span class="smallfont">{PAGINATION}</span></td>
<!-- END topicpagination -->
</tr>
<!-- BEGIN switch_user_logged_in -->
<!-- BEGIN watchtopic -->
<tr>
<td class="alt2" colspan="2" align="right" valign="top"><span class="smallfont">{S_WATCH_TOPIC}</span></td>
</tr>
<!-- END watchtopic -->
<!-- END switch_user_logged_in -->
<tr>
<td class="alt2" colspan="2" align="center" style="padding:0px">
<!-- BEGIN switch_user_logged_in -->
<font size="2" face="tahoma" color="green"><center>* Http://Haku.4rumer.Com Cộng Đồng Giải Trí Online.<br />
* Viết tiếng Việt có dấu, là tôn trọng người đọc.<br />
* Chia sẻ bài sưu tầm có ghi rõ nguồn, là tôn trọng người viết.<br />
* Thực hiện những điều trên, là tôn trọng chính mình.</font></center>
<font size="2" face="tahoma" color="red"><b>HAKU.4RUMER.COM</font>
<a name="quickreply"></a>
{QUICK_REPLY_FORM}<br/>
<!-- END switch_user_logged_in -->
</td>
</tr>
<tr>
<td style="margin:0; padding: 0;" colspan="2">
<table border="0" cellpadding="0" width="100%" cellspacing="0" id="info_open" style="display:''">
<tbody>
<!-- BEGIN show_permissions -->
<tr>
<td class="alt2" valign="top" width="25%"><span class="smallfont">{L_TABS_PERMISSIONS}</span></td>
<td class="alt1" valign="top" width="75%"><span class="smallfont">{S_AUTH_LIST}</span></td>
</tr>
<!-- END show_permissions -->
<tr>
<td class="tfoot" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a

class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span></td>
<!-- BEGIN show_permissions -->
<td align="right" valign="middle"><span class="smallfont"><a

href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
<!-- END show_permissions -->
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="margin:0; padding: 0;" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="info_close" style="display:none;">
<tbody>
<tr>
<td class="tfoot" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a

class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span></td>
<td align="right" valign="middle"><span class="smallfont"><a

href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>


</table>

<form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
<span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}Newtopic" alt="{L_POST_NEW_TOPIC}"

align="middle" border="0" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authreply -->
</span>
</td>
<!-- BEGIN viewtopic_bottom -->
<td align="right" nowrap="nowrap"><span class="smallfont">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit"

value="{L_GO}" /></span></td>
<!-- END viewtopic_bottom -->
<!-- BEGIN moderation_panel -->
<td align="center">
<span class="smallfont">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
</td>
<td align="center" width="250">
<span class="smallfont"> </span>
</td>
<!-- END moderation_panel -->
</tr>
</table>
</form>

<!-- BEGIN viewtopic_bottom -->
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td colspan="2" align="left" valign="top" nowrap="nowrap"><br />{S_TOPIC_ADMIN}<br />
<form name="action" method="get" action="{S_FORM_MOD_ACTION}">
<input type="hidden" name="t" value="{TOPIC_ID}" />
<input type="hidden" name="sid" value="{S_SID}" />
<span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD} <input class="liteoption" type="submit" value="{L_GO}" /></span>
</form>
</td>
</tr>
</table>
<!-- END viewtopic_bottom -->
<script type="text/javascript">
if(document.location.protocol=='http:'){
var Tynt=Tynt||[];Tynt.push('b-YHwq12Wr3784adbi-bnq');Tynt.i={"ap":"Nguồn: ","as":"Link gốc : Http://haku.forumvi.net"};
(function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}
</script>
<!-- BEGIN switch_user_logged_out -->
<script type="text/javascript">
jQuery(function(){
jQuery(".cont_code").text("Vui lòng đăng nhập để thấy nội dung CODE");
});
</script>
<!-- END switch_user_logged_out -->
<script>window.onload = function resizeImagesForumotion()
{
if (document.images.length > 0)
{

var maxWidth =768;
var imgHeight;
var imgWidth;
for (var i = 0; i < document.images.length; i++)
{
imgWidth = document.images[i].width;
imgHeight = document.images[i].height;
if (document.images[i].width > maxWidth && document.images[i].src != "http://i81.servimg.com/u/f81/14/01/69/16/banner14.jpg") {
image = new Image();
image = document.images[i];

newImage = image.cloneNode( true ) ;

newImage.origHeight = image.height;
newImage.origWidth = image.width;


newImage.width = maxWidth ;

imgHeight = imgHeight / (imgWidth/ maxWidth );
newImage.height = imgHeight;

newImage.style.cursor = 'pointer';


if( image.outerHTML )
{
newImage.onclick = "var altHeight; var altWidth; altHeight = this.height ; altWidth = this.width; this.width = this.origWidth; this.height = this.origHeight; this.origWidth = altWidth; this.origHeight = altHeight; ";
} else {
newImage.onclick = function () {
var altHeight;
var altWidth;

altHeight = this.height ;
altWidth = this.width;

this.width = this.origWidth;
this.height = this.origHeight;

this.origWidth = altWidth;
this.origHeight = altHeight;
};
}


if( parentNode = image.parentNode )
{
textMessage = document.createTextNode(' Hình ảnh đã được thu nhỏ, click vào để xem với kích thước thật');

elem = document.createElement("td");
elem.setAttribute( "align", "center");
elem.style.backgroundColor = '#FFFFCC';
elem.style.color = '#000';
elem.style.fontSize = '10pt';

elem.appendChild( textMessage );
elem.appendChild( document.createElement("br"));
elem.appendChild( newImage );


tableRow = document.createElement("tr");
tableRow.appendChild(elem);

TableElem = document.createElement("table");
TableElem.setAttribute( "border", "0");
TableElem.appendChild( tableRow );

frag = document.createElement("div");
frag.appendChild( TableElem );

if( image.outerHTML )
{
image.outerHTML = frag.innerHTML;
} else {
parentNode.replaceChild( TableElem, image );
}
}
} }
}
} </script>



Được sửa bởi Admin ngày Fri Jun 08, 2012 9:46 am; sửa lần 1.

Hãy cám ơn bài viết của Admin bằng cáh bấm vào "" nhe!!!

Về Đầu Trang Go down

https://haku.forumvi.net

Tiêu đề

viewtopic_body dọc ( có đóng khung thông tin ,avata, re chột vào avata ngay ngắn lại )

Xem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang
Trang 1 trong tổng số 1 trang
::.
Permissions in this forum:Bạn không có quyền trả lời bài viết
Forum Häkü Cộng Đồng Chém Gió :: CONG NGHE THONG TIN :: Thế giới blog, Forum-