Tạo "mã nhúng" cho mỗi bài đăng trên blog/web
Thứ Sáu, 25 tháng 5, 2012
Bạn thường vào nhaccuatui.com hay nhiều blog khác chẳng hạn nhưng tranminhphuc Blog . Khi xem một bài đăng hay một nghe một bài hát thì bạn sẽ thấy url , chèn vào web/blog, chèn vào forum. Bạn thắc mắc làm bằng cách nào. Blog Thủ Thuật 24/7 sẽ hướng dẫn cho bạn:
1. Đăng nhập vào blog → thiết kế → chỉnh sửa HTML
->Mở rộng mẫu tiện ích
2. Đặt đoạn code dưới đây trước thẻ ]]></b:skin>
.about-article{ background-color:#f9f9f9; padding-bottom:5px; padding-left:20px; font-size:11px; } .about-article input{ background-color:#ffffff; }
3. Tiếp tục tìm đến đoạn code <data:post.body/>
Và đặt toàn bộ đoạn code sau dưới nó:<!-- Code by http://tanchau123.blogspot.com -->
<b:if cond='data:blog.pageType == "item"'><div class="about-article"><p>If you find this article useful, please feel free to link to this page from your website or blog.</p><p class="noborder"><label for="aa-url">URL:</label><br /><input size="80" readonly="readonly" onclick="this.focus();this.select();" type="text" id="aa-url" value="<data:post.url/>" /></p><p><label for="aa-forum">HTML Link:</label><br /><input size="80" readonly="readonly" onclick="this.focus();this.select();" type="text" id="aa-forum" value="<a href=&quot;<data:post.url/>&quot;><data:post.title/></a>" /></p><p><label for="aa-forum">Forum Link:</label><br /><input size="80" readonly="readonly" onclick="this.focus();this.select();" type="text" id="aa-forum" value="[url=<data:post.url/>]/<data:post.title/>[/url]" /></p><p align='center'><a href='http://www.bloggertipandtrick.net/' style='display:none;' target='_blank'>Widget by BloggerTipAndTrick</a></p></div><br/></b:if><!-- Code by http://tanchau123.blogspot.com -->
Trong đoạn code trên 80 chính là độ rộng cuả 3 ô chứa mã nhúng, còn #ffffff chính là mã màu nền cuả ô chứa mã .
Ý kiến bạn đọc [ 0 ]
Ý kiến của bạn