Widget các bài gần đây: bản update!

2008-06-05

Widget các bài gần đây: bản update!

Nếu bạn đã từng sử dụng widget có hiện ảnh thumbnail ở bài viết Này (http://www.vietwebguide.com/2008/05/widget-bi-gn-y-bn-nng-cp-h-tr-hin-nh.html), thì đây là bản nâng cấp tiếp theo của nó.

Các thuộc tính bổ sung:
+ Hiện số comment của từng bài viết
+ Tùy chỉnh màu nền của widget
+ Tùy chỉnh màu, font size của tiêu đều.

Để sử dụng widget này, bạn hãy xóa code của widget cũ (nếu có). Sau đó cho code bên dưới vào.

Here is the code of widget:


Before insert it into your widget (HTML/Javascript), you should change some valid parameters (the red code):

The Links http://anhvo.info.googlepages.com/phi00001.png to http://anhvo.info.googlepages.com/phi00007.png : these are the images, which will show as the thumbnails of posts, which have no any pictures in it. You can dont change these links.

Number 180: width of your sidebar. You can change it into your interested.

Cellspacing = 1 : spacing between thumbnails and titles.

bgColor = "#ABAE9B" : color if border widget.

imgwidth = 45; imgheight = 45 : the width and height size of thumbnails.

bgTD = "#000000" : color of background of widget;

fntsize = 12; : font size of title link;

acolor = "#ffffff" : color of the title links

text = "comments" : the text message of comments. If you dont want to show your numbers of comments of posts in this widget, change it into text = "no"

numposts = 10 : the max numbers of posts in this widgets.

home_page = "http://en.vietwebguide.com/" - change http://en.vietwebguide.com/ in your blog URL, dont forget / in the end.

Now you place the code in your new widget. And the last, you need go to Setting -> Site Feed, change the line Allow Blog Feeds into Full mode, click Save Setting, and now your widget will works fine.

I hope you will successful make this widget. If you have any question, please comment above. I will soon answer to you.

0 nhận xét:

Posts Recentes

Comentários Recentes

Arquivo

Comentários Recentes