• About
  • Policy
  • Contact

Phan Anh Buổi Sáng

  • Home
  • Kiến thức IT
    • PSD
    • Blogger
  • Translate
Google
Custom Search
Trang chủ » Blogger » Javascript » Popular Post » Resize Blogger Popular Post thumbnails

Resize Blogger Popular Post thumbnails

Unknown Labels: Blogger, Javascript, Popular Post Leave A Comment 20:07
Thay đổi kích thước hình thu nhỏ bài đăng phổ biến cho Blogger /blogspot.
Resize Blogger Popular Post thumbnails
Làm thế nào để thay đổi kích thước hình nhỏ trong Blogger bài tiện ích phổ biến, 1 Javascript đơn giản sẽ làm thay đổi kích thước mặc định s72-c thành kích thước tùy chỉnh cho bạn. Chèn code dưới đây trước thẻ </body> trong HTML nhé
Cách 1
<script type='text/javascript'>
//<![CDATA[
// Change Blogger popular post thumbnail size
// Put this code before </body>.
// See http://bloggersviet.blogspot.com/2015/01/resize-blogger-popular-post-thumbnails.html
$(".PopularPosts img").each(function () { $(this).attr("src", $(this).attr("src").replace(/\/s[0-9]+(\-c)?\//, "/s200-c/")) });
//]]>
</script>

Cách 2
<script type='text/javascript'>
//<![CDATA[
// Change Blogger popular post thumbnail size
// Put this code before </body>.
// By Taufik Nurrohman
function resizeThumb(size){var popularPost=document.getElementById('PopularPosts1');var image=popularPost.getElementsByTagName('img');for(var i=0;i<image.length;i++){image[i].src=image[i].src.replace(/\/s72\-c/g,"\/s"+size+"-c")}}resizeThumb(200);
//]]>
</script>

Cách 3 ( Thay đổi cho cả Youtube Thumbnails)
<script type='text/javascript'>
//<![CDATA[
// Change Blogger popular post thumbnail size
// Put this code before </body>.
// By http://bloggersviet.blogspot.com/2015/01/resize-blogger-popular-post-thumbnails.html
$(document).ready(function(){$('#PopularPosts1 img').attr('src',function(i,src){return src.replace('s72-c','s200-c')})});$(document).ready(function(){$('#PopularPosts1 img').attr('src',function(i,src){return src.replace('default.jpg','mqdefault.jpg')})});
//]]>
</script>

Thay đôi kích thước 200   cho phù hợp với bạn

Bài viết liên quan

← Bài đăng mới hơn Bài đăng cũ hơn → Trang chủ
Powered by Blogger.

Các Bình Luận Gần Đây

Bài đăng phổ biến

  • Ảnh bìa chế Phía sau một cô gái - Soobin Hoàng Sơn - Zoy Thủ Thuật #Zoy
    Đôi lúc em tránh ánh mắt của anh. vì dường như lúc nào em cũng hiểu thấu lòng anh Demo Cover Download PSD loading...
  • vBulletin vBay <=1.1.9 Error-Based SQL Injection
    #!/usr/bin/env python -W ignore::DeprecationWarning """ VBay <= 1.1.9 - Remote Error based SQL Injection ...
  • "Testing Image collection" shell and files upload vulnrablity
    Dorks : inurl:"modules/filemanagermodule/actions/?picker.php??id=0"            intitle:"Testing Image Collections" Goto ...
  • PhpFox 3.0.1 Cross Site Scripting
    Google Dork: Intext:"Powered By phpFox Version 3.0.1" Vendor Home : http://www.phpfox.com/  There are lots of parametrs Vulnerab...
  • [PHP] Get list username - vBulletin
    <?php // GET user function duyk_get_all_usr($link, $total_usr) { $max_page = $total_usr/100; $ma...
  • 10 mẹo giúp bạn làm chủ Gmail
    Năm 2004, Gmail đã có một bước đột phá lớn với việc sử dụng hộp thư điện tử trên nền tảng web. Việc check mail trở nên nhanh hơn, giao diện...
  • SERVER-SIDE INCLUDES (SSI) INJECTION
    It is a web attack were a remote attacker can execute commands on the server remotely, SSI Injections are used to execute some content bef...
  • Một số website hỗ trợ học lập trình trực tuyến
    Nếu bạn là sinh viên, nếu bạn mới bước vào con đường lập trình, hay nếu bạn là dân không chuyên thích khám phá và yêu thích lập trình… thì...
  • Testing Tool Công cụ kiểm tra Cấu trúc dữ liệu
    Testing Tool  "Cấu trúc dữ liệu " là một cách tiêu chuẩn để ghi chú nội dung của bạn, để máy tính có thể hiểu được nó. Khi trang w...
  • Hack Yahoo Accounts easily, 2012
    1. Download the required Cookie Stealer Script from here http://freakshare.com/files/cjflnpra/yahoo-cookie-stealer-by-wildhacker.com.rar.h...

Pageviews from the past week

Chuyên mục

Bài đăng phổ biến

  • Ảnh bìa chế Phía sau một cô gái - Soobin Hoàng Sơn - Zoy Thủ Thuật #Zoy
    Ảnh bìa chế Phía sau một cô gái - Soobin Hoàng Sơn - Zoy Thủ Thuật #Zoy
    Đôi lúc em tránh ánh mắt của anh. vì dường như lúc nào em cũng hiểu thấu lòng anh Demo Cover Download PSD loading...
  • vBulletin vBay <=1.1.9 Error-Based SQL Injection
    #!/usr/bin/env python -W ignore::DeprecationWarning """ VBay <= 1.1.9 - Remote Error based SQL Injection ...
  • "Testing Image collection" shell and files upload vulnrablity
    Dorks : inurl:"modules/filemanagermodule/actions/?picker.php??id=0"            intitle:"Testing Image Collections" Goto ...
  • PhpFox 3.0.1 Cross Site Scripting
    PhpFox 3.0.1 Cross Site Scripting
    Google Dork: Intext:"Powered By phpFox Version 3.0.1" Vendor Home : http://www.phpfox.com/  There are lots of parametrs Vulnerab...
  • [PHP] Get list username - vBulletin
    <?php // GET user function duyk_get_all_usr($link, $total_usr) { $max_page = $total_usr/100; $ma...
  • 10 mẹo giúp bạn làm chủ Gmail
    Năm 2004, Gmail đã có một bước đột phá lớn với việc sử dụng hộp thư điện tử trên nền tảng web. Việc check mail trở nên nhanh hơn, giao diện...
  • SERVER-SIDE INCLUDES (SSI) INJECTION
    It is a web attack were a remote attacker can execute commands on the server remotely, SSI Injections are used to execute some content bef...
  • Một số website hỗ trợ học lập trình trực tuyến
    Nếu bạn là sinh viên, nếu bạn mới bước vào con đường lập trình, hay nếu bạn là dân không chuyên thích khám phá và yêu thích lập trình… thì...
  • Testing Tool  Công cụ kiểm tra Cấu trúc dữ liệu
    Testing Tool Công cụ kiểm tra Cấu trúc dữ liệu
    Testing Tool  "Cấu trúc dữ liệu " là một cách tiêu chuẩn để ghi chú nội dung của bạn, để máy tính có thể hiểu được nó. Khi trang w...
  • Hack Yahoo Accounts easily, 2012
    Hack Yahoo Accounts easily, 2012
    1. Download the required Cookie Stealer Script from here http://freakshare.com/files/cjflnpra/yahoo-cookie-stealer-by-wildhacker.com.rar.h...
Google
Custom Search
Support: Facebook | Twitter | Google+ | Giới thiệu
Copyright © 2015 • Phan Anh Buổi Sáng • All Right Reserved. Template by Template Việt