SlideShare una empresa de Scribd logo
1 de 2
Tạo tab nội dung cho blogspot


1. Đầu tiên đăng nhập vào blog của bạn

2. Vào bố cục(thiết kế) và chọn chỉ nh sử HTML

3. Thêm code sau vào bên dưới thẻ <head>

<script language='javascript' src='http://traidatmui-tips.googlecode.com/files/dom_tab.js'
type='text/javascript'/>

4. Tiếp đến bạn thêm code bên dưới vào trước thẻ ]]></b:skin>
div.domtab {
padding:0;
width:500px; /*độ rộng của tab*/
font-size:90%; /*cỡ chữ của tab*/
}
ul.domtabs
{
float:left;
width:100%;
margin:0;
list-style:none;
padding-left: 0;
}
ul.domtabs li
{
float:left;
padding:0px 1px 0px 0px;
text-align: center;
}
ul.domtabs a{
padding:5px;
display:block;
background:#999; /*màu nền của thư mục trong tab*/
color: #fff; /*màu text của thư mục trong tab*/
height:1em;
font-weight:bold;
text-decoration:none;
}

ul.domtabs a:hover{
color: #0000ff; /*màu text của thư mục trong tab khi rê chuột*/
background:#ccc; /*màu nền của thư mục trong tab khi rê chuột*/
}
div.domtab div {
clear:both;
width:auto;
padding:0 2px;
margin: 0 0 1em 0;
}

div.domtab div {display: block; clear: both;}


Bạn dựa vào các dòng chữ hướng dẫn (dòng màu xanh) và chỉnh sửa lại cho phù hợp.
5. Đến đây bạn save template lại và trở về phần tử trang, thêm 1 HTML/Javascript
và thêm vào code bên dưới
<div class='domtab'><ul class='domtabs'>

<li><a href='#noidung1'>Nội dung 1</a></li>
<li><a href='#noidung2'>Nội dung 2</a></li>
<li><a href='#noidung3'>Nội dung3</a></li>

</ul>
<div style='padding:3px; border: 2px solid #ccc;'>
<a id='noidung1' name='noidung1'></a>
<div class='tab_content_1'>
Nội dung 1
</div></div>

<div style='padding:3px;display:none;border: 2px solid #ccc;'>
<a id='noidung2' name='noidung2'></a>
<div class='tab_content_2'>
Nội dung 2
</div></div>

<div style='padding:3px;display:none;border: 2px solid #ccc;'>
<a id='noidung3' name='noidung3'></a>
<div class='tab_content_3'>
Nội dung 3
</div></div>

</div>

Chỉnh sửa code:
- Bạn hãy chú ý các dòng text màu đỏ trong code, chúng phải là giống nhau tương
ứng ở từng nội dung.
- Bạn thay các text màu xanh lá đậm trong code thành tên thư mục mà bạn muốn tạo.
- Và những dòng màu xanh dương đậm chính là phần chứa nội dung tương ứng với
từng thư mục.

Ở đây mình chỉ tạo tab có 3 nội dung cơ bản, bạn có thể tạo thêm nhiều nội dung khác
theo ý của mình
           Nguồn : http://htentertainment.blogspot.com/2011/10/tao-tab-noi-dung-cho-
                                                                        blogspot.html
Posted in: Thủ thuật blog

Más contenido relacionado

Más de Pham Van van Dinh

2 lich su_phat_trien_cac_ly_thuyet_quan_tri_2273
2 lich su_phat_trien_cac_ly_thuyet_quan_tri_22732 lich su_phat_trien_cac_ly_thuyet_quan_tri_2273
2 lich su_phat_trien_cac_ly_thuyet_quan_tri_2273
Pham Van van Dinh
 
Aj --academic-encounters---human-behaviour
Aj --academic-encounters---human-behaviourAj --academic-encounters---human-behaviour
Aj --academic-encounters---human-behaviour
Pham Van van Dinh
 
Cae practice tests oxford university press
Cae practice tests   oxford university pressCae practice tests   oxford university press
Cae practice tests oxford university press
Pham Van van Dinh
 
Bãi bỏ án tử hình nên hay không
Bãi bỏ án tử hình nên hay khôngBãi bỏ án tử hình nên hay không
Bãi bỏ án tử hình nên hay không
Pham Van van Dinh
 
Activities of the house of commons
Activities of the house of commonsActivities of the house of commons
Activities of the house of commons
Pham Van van Dinh
 
Week 13 apposition coordination & ellipsis
Week 13   apposition  coordination & ellipsisWeek 13   apposition  coordination & ellipsis
Week 13 apposition coordination & ellipsis
Pham Van van Dinh
 
Week 11 adverbial, adjuncts, conjuncts, disjuncts
Week 11   adverbial, adjuncts, conjuncts, disjunctsWeek 11   adverbial, adjuncts, conjuncts, disjuncts
Week 11 adverbial, adjuncts, conjuncts, disjuncts
Pham Van van Dinh
 
Week 6 the simple sentence (p2) - edited
Week 6   the simple sentence (p2) - editedWeek 6   the simple sentence (p2) - edited
Week 6 the simple sentence (p2) - edited
Pham Van van Dinh
 

Más de Pham Van van Dinh (20)

Over view about mba
Over view about mbaOver view about mba
Over view about mba
 
Yeu to con_nguoi
Yeu to con_nguoiYeu to con_nguoi
Yeu to con_nguoi
 
Qttc chuong 1
Qttc chuong 1Qttc chuong 1
Qttc chuong 1
 
Chuỗi giá trị
Chuỗi giá trịChuỗi giá trị
Chuỗi giá trị
 
Chapter 3quantrihiendai
Chapter 3quantrihiendaiChapter 3quantrihiendai
Chapter 3quantrihiendai
 
2 lich su_phat_trien_cac_ly_thuyet_quan_tri_2273
2 lich su_phat_trien_cac_ly_thuyet_quan_tri_22732 lich su_phat_trien_cac_ly_thuyet_quan_tri_2273
2 lich su_phat_trien_cac_ly_thuyet_quan_tri_2273
 
Sodotuduy
SodotuduySodotuduy
Sodotuduy
 
Chuong 8web
Chuong 8webChuong 8web
Chuong 8web
 
How to deal with conflicts at work
How to deal with conflicts at workHow to deal with conflicts at work
How to deal with conflicts at work
 
Cooperative
CooperativeCooperative
Cooperative
 
Ordered response options
Ordered response optionsOrdered response options
Ordered response options
 
Aj --academic-encounters---human-behaviour
Aj --academic-encounters---human-behaviourAj --academic-encounters---human-behaviour
Aj --academic-encounters---human-behaviour
 
Cae practice tests oxford university press
Cae practice tests   oxford university pressCae practice tests   oxford university press
Cae practice tests oxford university press
 
Bãi bỏ án tử hình nên hay không
Bãi bỏ án tử hình nên hay khôngBãi bỏ án tử hình nên hay không
Bãi bỏ án tử hình nên hay không
 
Rút xô nhóm 5
Rút xô   nhóm 5Rút xô   nhóm 5
Rút xô nhóm 5
 
Activities of the house of commons
Activities of the house of commonsActivities of the house of commons
Activities of the house of commons
 
Week 13 apposition coordination & ellipsis
Week 13   apposition  coordination & ellipsisWeek 13   apposition  coordination & ellipsis
Week 13 apposition coordination & ellipsis
 
Week 11 adverbial, adjuncts, conjuncts, disjuncts
Week 11   adverbial, adjuncts, conjuncts, disjunctsWeek 11   adverbial, adjuncts, conjuncts, disjuncts
Week 11 adverbial, adjuncts, conjuncts, disjuncts
 
Week 9 the complex sentence
Week 9   the complex sentenceWeek 9   the complex sentence
Week 9 the complex sentence
 
Week 6 the simple sentence (p2) - edited
Week 6   the simple sentence (p2) - editedWeek 6   the simple sentence (p2) - edited
Week 6 the simple sentence (p2) - edited
 

Tạo tab nội dung cho blogspot

  • 1. Tạo tab nội dung cho blogspot 1. Đầu tiên đăng nhập vào blog của bạn 2. Vào bố cục(thiết kế) và chọn chỉ nh sử HTML 3. Thêm code sau vào bên dưới thẻ <head> <script language='javascript' src='http://traidatmui-tips.googlecode.com/files/dom_tab.js' type='text/javascript'/> 4. Tiếp đến bạn thêm code bên dưới vào trước thẻ ]]></b:skin> div.domtab { padding:0; width:500px; /*độ rộng của tab*/ font-size:90%; /*cỡ chữ của tab*/ } ul.domtabs { float:left; width:100%; margin:0; list-style:none; padding-left: 0; } ul.domtabs li { float:left; padding:0px 1px 0px 0px; text-align: center; } ul.domtabs a{ padding:5px; display:block; background:#999; /*màu nền của thư mục trong tab*/ color: #fff; /*màu text của thư mục trong tab*/ height:1em; font-weight:bold; text-decoration:none; } ul.domtabs a:hover{ color: #0000ff; /*màu text của thư mục trong tab khi rê chuột*/ background:#ccc; /*màu nền của thư mục trong tab khi rê chuột*/ } div.domtab div { clear:both; width:auto; padding:0 2px;
  • 2. margin: 0 0 1em 0; } div.domtab div {display: block; clear: both;} Bạn dựa vào các dòng chữ hướng dẫn (dòng màu xanh) và chỉnh sửa lại cho phù hợp. 5. Đến đây bạn save template lại và trở về phần tử trang, thêm 1 HTML/Javascript và thêm vào code bên dưới <div class='domtab'><ul class='domtabs'> <li><a href='#noidung1'>Nội dung 1</a></li> <li><a href='#noidung2'>Nội dung 2</a></li> <li><a href='#noidung3'>Nội dung3</a></li> </ul> <div style='padding:3px; border: 2px solid #ccc;'> <a id='noidung1' name='noidung1'></a> <div class='tab_content_1'> Nội dung 1 </div></div> <div style='padding:3px;display:none;border: 2px solid #ccc;'> <a id='noidung2' name='noidung2'></a> <div class='tab_content_2'> Nội dung 2 </div></div> <div style='padding:3px;display:none;border: 2px solid #ccc;'> <a id='noidung3' name='noidung3'></a> <div class='tab_content_3'> Nội dung 3 </div></div> </div> Chỉnh sửa code: - Bạn hãy chú ý các dòng text màu đỏ trong code, chúng phải là giống nhau tương ứng ở từng nội dung. - Bạn thay các text màu xanh lá đậm trong code thành tên thư mục mà bạn muốn tạo. - Và những dòng màu xanh dương đậm chính là phần chứa nội dung tương ứng với từng thư mục. Ở đây mình chỉ tạo tab có 3 nội dung cơ bản, bạn có thể tạo thêm nhiều nội dung khác theo ý của mình Nguồn : http://htentertainment.blogspot.com/2011/10/tao-tab-noi-dung-cho- blogspot.html Posted in: Thủ thuật blog