Link gốc : http://www.mybloggertricks.com/2009/06/multi-tab-widget-for-bloggerblogspot.html
Tiện ích Recent Posts with 3 columns for Blogger
Ngày 01 tháng 5 năm 2011
.jpg)
Tiện ích này rất thích hợp cho các trang giới thiệu phần mềm, ebook, quảng cáo sản phẩm,…kết hợp sử dụng tiện ích Multi Tabbed Widget For Blogger sẽ càng làm cho Blog của bạn trông ngăn nắp và chuyên nghiệp hơn.
Thể theo yêu cầu của bạn Mobile, cũng như muốn chia sẻ với các bạn tiện ích hữu ích này, bài viết bên dưới iTechPlus sẽ hướng dẫn các bạn cách tạo widget Recent Posts with 3 columns for Blogger qua 2 bước đơn giản.
Thực hiện :
1. Vào Thiết kế > Phần tử trang
2. Tạo một widget HTML/JavaScript và dán code bên dưới vào :
Trong đoạn code trên :<style type="text/css">
#itechplus-rc-3cot {width:320px;}
table#itechplus-rc-3cot {border:1px solid #ccc;}
#rc-3cot {padding:0 8px;width:30%;}
#rc-3cot p{padding:0;margin:0 0 5px 0;}
#rc-3cot img {margin:8px 0 2px; height:60px; width:50px; border:1px solid #ccc; padding:1px;}
#rc-3cot a:link {font:normal 12px arial;}
#itechplus-rc-3cot h2 {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieGQ1qCczm-gmcEMvsWpk5a1A4ka8K5YrUC_a4bwIbZyWWGxTtp1jZldEhGnWQtUxk4-5s7IrbpJkiqMCLScnlZYm1xTr1NOVQANETAptJ5ISkninNor3WxUIdSM0Ex0ZuJuu4g3FEgSc/) no-repeat top left;
padding:5px 0 14px 15px;
font:bold 13px Verdana;
margin:0px;
color:#fff;
}
</style>
<script type="text/javascript">
home_page = "http://itechplus.info/";
label = "License";
numposts = 9;
sumTitle = 24;
colortitle = "#333";
imgr = new Array();
imgr[0] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZK9NwTJKulUc8JSL4WHRc0rA_NcKcPzHCl-IiewoQ0H0E_Moc7aNoM7TAAGEjpcGNW9FNbf47UI2FYiM2hNbW89HMKo3zsHr4semBbVx36ZsH7aGQC1yigmUS3RJkWxmGlzchQ7gVjSw/";
showRandomImg = true;
</script>
<div id="itechplus-rc-3cot">
<h2>Recent Posts 3 column</h2>
<script src="https://sites.google.com/site/itechroot/javascripts/itechplus-rc-3cot.txt"type="text/javascript"></script>
<p style="float:right;margin:0;padding:3px">Xem tất cả<a href="http://www.itechplus.info/search/label/License?&max-results=8"> Phần mềm bản quyền »</a></p>
</div>
- width:320px; : chiều rộng của widget
- height:60px; width:50px; : chiều rộng và chiều cao của ảnh đại diện
- home_page = "http://itechplus.info/"; : địa chỉ blog của bạn
- label = "License"; : tên trương mục muốn hiển thị
- numposts = 9; : số bài viết sẽ hiển thị
- sumTitle = 24; : số ký tự dòng tiêu đề bài đăng
- colortitle = "#333"; : màu tiêu đề bài đăng
- imgr[0] = “…”; : hình đại diện cho bài viết không có ảnh
Replace these with your tab titles
Tab 1 , Tab 2 , Tab 3
Replace these with your widget codes.
Tab 1 content goes here , Tab 2 content goes here , Tab 3 content goes here
Here goes the codes of your content/widgets, which can be your recent comments widget, recent posts widget, any written text, a picture etc. For example, to add a recent comments widget to the first tab, name Tab 1 as Comments and replace Tab 1 content goes here with the HTML code of your recent comments widget.
Các bạn thay đổi cho phù hợp. Hy vọng các bạn sẽ thích tiện ích này.
Chúc các bạn thành công !
iTechPlus
No comments:
Post a Comment