Đăng nhập
Latest topics
» Tôi sẽ đỗ đại học!by nightWalker 9/2/2024, 7:00 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 |
làm sao resize ảnh như CP
+6
kailord
love
Mr.FR
hunghsmn
Việt
vlt
10 posters
Trang 1 trong tổng số 1 trang
làm sao resize ảnh như CP
cho vlt hỏi làm sao để khi post hình ảnh vô forum mà đựơc như kiểu của dưới đây:.
Hình to sẽ tự thu về kích cỡ 400x300px.
Click để phóng to ra
Thu nhỏ ảnh lại
Click vào để xem ở trang khác
vlt cảm ơn nhiều.
Hình to sẽ tự thu về kích cỡ 400x300px.
Click để phóng to ra
Thu nhỏ ảnh lại
Click vào để xem ở trang khác
vlt cảm ơn nhiều.
Re: làm sao resize ảnh như CP
Viewtopic body của mình không có đoạn code này
- Code:
<!-- BEGIN switch_image_resize -->
....
....
<!-- END switch_image_resize -->
Re: làm sao resize ảnh như CP
hunghsmn đã viết:Viewtopic body của mình không có đoạn code nàyThử thêm vào không có tác dụng
- Code:
<!-- BEGIN switch_image_resize -->
....
....
<!-- END switch_image_resize -->
đấy là bạn ấy viết tắt ấy ý chỉ cả đoạn dài nằm giữa hai thẻ ấy nữa
Re: làm sao resize ảnh như CP
Đúng rồi
Trả Viewtopic body về mặc định thì có đoạn đó
Nhưng thử thì vẫn không có tác dụng[/quote]
Trả Viewtopic body về mặc định thì có đoạn đó
Nhưng thử thì vẫn không có tác dụng[/quote]
Re: làm sao resize ảnh như CP
ủa có cập nhập hả...Việt K đã viết:chắc đợt 30/10 chú chưa cập nhật temp đó thôi !
love vẫn dùng tem cũ
Re: làm sao resize ảnh như CP
temp mặc định đã thu gọn code này ngắn hơn rất nhiều rồi. Nên nghĩ không cần Việt hóa làm gì để nó dài ra.
Chức năng này có kèm đoạn CSS
p/s : chú có chỉnh cỡ ảnh trong QLTT > Cấu hình dđ (Messages and Emails) > Images resize chưa ?
Chức năng này có kèm đoạn CSS
- Code:
.resize_process .resizebox {
display:none;
}
.resize_process img.resize_img {
display:none;
}
.resizebox a.enlarge, .resizebox a.fullsize, .resizebox a.resize {
display:inline-block;
}
.resizebox.enlarged a.enlarge {
display:none;
}
.resizebox.enlarged a.resize {
display:inline-block;
}
.resizebox a.resize {
display:none;
}
.resizebox {
background-color:#FFFFFF;
cursor:default;
display:inline-block;
font-style:normal;
font-weight:normal;
line-height:1.1em;
margin:0;
max-width:100%;
text-align:left;
}
.resizebox div {
font-style:normal;
font-weight:normal;
margin:0;
}
.resizebox .resize_border {
border:1px solid #FFFFFF;
display:block;
}
.resizebox .resize_content {
display:inline-block;
padding:5px 10px;
}
.resizebox .resize_filler {
border:medium none;
display:inline-block;
padding:0;
width:40px;
}
p/s : chú có chỉnh cỡ ảnh trong QLTT > Cấu hình dđ (Messages and Emails) > Images resize chưa ?
Re: làm sao resize ảnh như CP
Đoạn code này Việt hóa the ý Ex :
[Phóng To Ảnh] [Thu Nhỏ Ảnh] [Kích Thước Thật]
[Phóng To Ảnh] [Thu Nhỏ Ảnh] [Kích Thước Thật]
- Code:
<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(function(){
$('.postbody img').not('.signature_div img').css('display','none');
});
$(window).load(function(){
$('.postbody img').not('.signature_div img').each(function(){
if ( ( $(this).width() > {switch_image_resize.IMG_RESIZE_WIDTH} && {switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height() > {switch_image_resize.IMG_RESIZE_HEIGHT} && {switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
$(this).before(document.createElement('div')).prev().click(function(){
return false;
}).addClass('resizebox gensmall clearfix').append(document.createElement('div')).children().addClass('resize_border clearfix').append(document.createElement('div')).children().addClass('resize_content clearfix').append(document.createElement('a')).children().addClass('enlarge').attr('href', '#').text('[Phóng To Ảnh]').click(function(){
$(this).parent().parent().parent().next().css('display','none').attr('resizeWidth', $(this).parent().parent().parent().next().width()).width('');
$(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width() > ($('html').attr('dir') != 'rtl' ? $(this).closest('td').width() - $(this).parent().parent().parent().offset().left + $(this).closest('td').offset().left : $(this).parent().parent().parent().width() + $(this).parent().parent().parent().offset().left - $(this).closest('td').offset().left) ? $('html').attr('dir') != 'rtl' ? $(this).closest('td').width() - $(this).parent().parent().parent().offset().left + $(this).closest('td').offset().left : $(this).parent().parent().parent().width() + $(this).parent().parent().parent().offset().left - $(this).closest('td').offset().left : '').css('display','inline');
$(this).css('display','none').next('a.resize').css('display','inline-block');
$(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
return false;
}).parent().append(document.createElement('a')).children().next().addClass('resize').attr('href','#').text('[Thu Nhỏ Ảnh]').click(function(){
$(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
$(this).css('display','none').prev('a.enlarge').css('display','inline-block');
$(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
return false;
}).parent().append(document.createElement('div')).children('a.resize').next().addClass('resize_filler').text(' ').parent().append(document.createElement('a')).children('div.resize_filler').next().addClass('fullsize').attr('href','#').click(function(){
window.open('/viewimage.forum?u=' + encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
return false;
}).attr('target', '_blank').text('[Kích Thước Thật]');
if ($(this).width() > ($('html').attr('dir') != 'rtl' ? $(this).closest('td').width() - $(this).prev().offset().left + $(this).closest('td').offset().left : $(this).prev().width() + $(this).prev().offset().left - $(this).closest('td').offset().left)){
$(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' + encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
}
$(this).width($(this).width() * ( ( {switch_image_resize.IMG_RESIZE_WIDTH} != 0 && ( {switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() / $(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} / {switch_image_resize.IMG_RESIZE_HEIGHT} ) ) ? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width() : {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) ).css('display','inline').prev().width($(this).width());
}
}).css('display','inline');
});
//]]>
</script>
<!-- END switch_image_resize -->
Re: làm sao resize ảnh như CP
Lỗi
Detected error
We have counted a different number of "{" and of "}". It means your CSS risks to be not valid and will not be posted correctly on your forum.
We advise you to reread your code.
Detected error
We have counted a different number of "{" and of "}". It means your CSS risks to be not valid and will not be posted correctly on your forum.
We advise you to reread your code.
Re: làm sao resize ảnh như CP
Xong rồi IE, FF đều tốt. Cám ơn các cháu.
[Phóng To Ảnh] [Thu Nhỏ Ảnh] [Kích Thước Thật]
Mấy chữ Việt này cũng đúng ý chú
[Phóng To Ảnh] [Thu Nhỏ Ảnh] [Kích Thước Thật]
Mấy chữ Việt này cũng đúng ý chú
Re: làm sao resize ảnh như CP
úi dzời 1 lỗi to đùng
[code]Lỗi
Detected error
We have counted a different number of "{" and of "}". It means your CSS risks to be not valid and will not be posted correctly on your forum.
We advise you to reread your code.
đấy !
[code]Lỗi
Detected error
We have counted a different number of "{" and of "}". It means your CSS risks to be not valid and will not be posted correctly on your forum.
We advise you to reread your code.
đấy !
Re: làm sao resize ảnh như CP
mà mọi người ơi code đó chèn vào đâu vậy , mình hỏi luôn , muốn cập nhật
[quote]chắc đợt 30/10 chú chưa cập nhật temp đó thôi !
cập nhật như thế nào vậy < không thì mình bó tay . com
[quote]chắc đợt 30/10 chú chưa cập nhật temp đó thôi !
cập nhật như thế nào vậy < không thì mình bó tay . com
Re: làm sao resize ảnh như CP
Joslong đã viết:
cập nhật như thế nào vậy < không thì mình bó tay . com
Mình chẵng biết cập nhật gì hết
Lấy code cuae Viet K cho dán vào CSS
Lấy code của Ex cho dán vào Viewtopic body
Vậy là xong, ngoài ra không biết gì hết.
À quên, còn một việc cuối cùng nữa là bấm dấu cộng
cho 2 bạn ấy là xong.
Re: làm sao resize ảnh như CP
code với a Ex đưa là đúng rồi, còn bác Joslong bấm vào ko được là tại code bác sửa sai chỗ nào rồi ! sao lại còn cả tiếng Anh với tiếng Việt thế kia
Re: làm sao resize ảnh như CP
có một vấn đề vẫn chưa tìm ra là trong khung Quote thì nó bị vỡ khung thì phải xem demo này thử
http://www.a2bmt.com/forum-f12/topic-t1154.htm
http://www.a2bmt.com/forum-f12/topic-t1154.htm
Re: làm sao resize ảnh như CP
Joslong đã viết:CHẮC DÀNH DÙNG TIẾNG ANH THUI VẬY ((
copy rùi chèn thẳng vào luôn , như hướng dẫn chữ có phải pro đâu mà dám sửa , hả trời
làm cả chục lần đầu y như thế
Re: làm sao resize ảnh như CP
vào viewtopic_body tìm đoạn:
thay bằng: code của Ex
vào css thêm vào đoạn code của
ok !! phù vậy mà không nói sớm làm em :smiley:
- Code:
<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(resize_images({ 'selector' : '.postbody', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
//]]>
</script>
<!-- END switch_image_resize -->
thay bằng: code của Ex
vào css thêm vào đoạn code của
ok !! phù vậy mà không nói sớm làm em :smiley:
Similar topics
» [mẹo vặt] Sử dụng code Resize ảnh mà ko làm resize banner
» Hỏi cách hướng dẫn resize hình
» Resize lại hình
» Tự động resize cho ảnh trên diễn đàn
» không resize ảnh được
» Hỏi cách hướng dẫn resize hình
» Resize lại hình
» Tự động resize cho ảnh trên diễn đàn
» không resize ảnh được
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
|
|