Khung tìm kiếm đẹp cho blogspot

Posted On / Leave a Comment

Cách làm thủ thuật:
1. Chọn mẫu ô tìm kiếm mình yêu thích 
2. Vào bảng điều khiển blogger -> Bố cục (Layout) -> Thêm tiện ích (Add a Widget) -> HTML/Javascript
3. Dán Code mẫu ô tìm kiếm đã lựa chọn vào tiện ích vừa thêm

MẪU KHUNG Ô TÌM KIẾM:
  • Mẫu 1:
CODE:

<style type="text/css">
#helperblogger-searchbox {
border-radius: 5px;
background: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRACPI9siiyM2w8cyfA8moKbhNCeL4XUiAGX5WIyIW97bMDex_kLXLxRLfh3GLSeHCwgKhXJoa8BnbIvW1h7271jYa08O-TGH8Gw1XZb87CngrgqDdNyECRd1oPWOtWWK6UGX1g8LP67E/s1600/helperblogger.com-green.png) no-repeat scroll center center transparent;
width: 307px;
height: 50px;
disaply: block;
}

form#helperblogger-searchform {
display: block;
padding: 9px 16px;
margin: 0;
}

form#helperblogger-searchform #s {
padding-left: 24px !important;
padding: 7.5px;
margin: 0;
width: 198px;
font-size: 16px;
font-family: georgia;
font-style: italic;
color: #666666;
vertical-align: top;
border: none;
background: transparent;
}

form#helperblogger-searchform
#sbutton {
margin: 0;
padding: 0;
height: 40px;
width: 74px;
vertical-align: top;
border: none;
background: transparent;
}
</style>
<div id="helperblogger-searchbox">
<form id="helperblogger-searchform" action="/search" method="get">
<input type="text" id="s" name="q" value="Search..." onfocus='if (this.value == "Search...") {this.value = ""}'
onblur='if (this.value == "") {this.value = "Search...";}' />
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton"
/>
</form>
</div>

  • Mẫu 2:
CODE:

<style type="text/css">
#helperblogger-searchbox {
border-radius: 5px;
background: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJZUeXjDP9PyA2f46bk5vSk2I-ZswPWbCokPzRsIxhlMDCDlkYQQ7T1sBsLqfZllu9XGgdvSlga-5OEcoZr1Esr5SJueR5QbztReH_WlHYNWb7tzrScmKJBa_R1uBIfrvHX6BHo8vafh8/s1600/helperblogger.com-blue.png) no-repeat scroll center center transparent;
width: 307px;
height: 50px;
disaply: block;
}

form#helperblogger-searchform {
display: block;
padding: 9px 16px;
margin: 0;
}

form#helperblogger-searchform #s {
padding-left: 24px !important;
padding: 7.5px;
margin: 0;
width: 198px;
font-size: 16px;
font-family: georgia;
font-style: italic;
color: #666666;
vertical-align: top;
border: none;
background: transparent;
}

form#helperblogger-searchform
#sbutton {
margin: 0;
padding: 0;
height: 40px;
width: 74px;
vertical-align: top;
border: none;
background: transparent;
}
</style>
<div id="helperblogger-searchbox">
<form id="helperblogger-searchform" action="/search" method="get">
<input type="text" id="s" name="q" value="Search..." onfocus='if (this.value == "Search...") {this.value = ""}'
onblur='if (this.value == "") {this.value = "Search...";}' />
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton"
/>
</form>
</div>

  • Mẫu 3:
CODE:

<style type="text/css">
#helperblogger-searchbox {
border-radius: 5px;
background: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKqxZg3AyDL6j2DPXllNnaZIwtlgpNkGUVWYP6VK83-z44r5SaZ_2olfg6ARXVqX0BG65scU9vxhc_0Up3PgguZDxeMzu0HkukRfJ5vwhEwru5ra8ot5doW9We8MMozsF8b5pai5gNo4c/s1600/helperblogger.com-orange.png) no-repeat scroll center center transparent;
width: 307px;
height: 50px;
disaply: block;
}

form#helperblogger-searchform {
display: block;
padding: 9px 16px;
margin: 0;
}

form#helperblogger-searchform #s {
padding-left: 24px !important;
padding: 7.5px;
margin: 0;
width: 198px;
font-size: 16px;
font-family: georgia;
font-style: italic;
color: #666666;
vertical-align: top;
border: none;
background: transparent;
}

form#helperblogger-searchform
#sbutton {
margin: 0;
padding: 0;
height: 40px;
width: 74px;
vertical-align: top;
border: none;
background: transparent;
}
</style>
<div id="helperblogger-searchbox">
<form id="helperblogger-searchform" action="/search" method="get">
<input type="text" id="s" name="q" value="Search..." onfocus='if (this.value == "Search...") {this.value = ""}'
onblur='if (this.value == "") {this.value = "Search...";}' />
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton"
/>
</form>
</div>

  • Mẫu 4:
CODE:

<style type="text/css">
#helperblogger-searchbox {
border-radius: 5px;
background: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1_IZkJnd39RgdUGty9T9sDkVgyvUtzwgQk19jYKj07urxaE81lwBHf0VuZ2RHtxcTT2eE8iM-TlWw4Cc9NcEvg0X6KAZOebuQ_8-KWPOgam4TabQGysNqSaAOaZ9KNC-UZrF2f0nSbLA/s1600/helperblogger.com-purple.png) no-repeat scroll center center transparent;
width: 307px;
height: 50px;
disaply: block;
}

form#helperblogger-searchform {
display: block;
padding: 9px 16px;
margin: 0;
}

form#helperblogger-searchform #s {
padding-left: 24px !important;
padding: 7.5px;
margin: 0;
width: 198px;
font-size: 16px;
font-family: georgia;
font-style: italic;
color: #666666;
vertical-align: top;
border: none;
background: transparent;
}

form#helperblogger-searchform
#sbutton {
margin: 0;
padding: 0;
height: 40px;
width: 74px;
vertical-align: top;
border: none;
background: transparent;
}
</style>
<div id="helperblogger-searchbox">
<form id="helperblogger-searchform" action="/search" method="get">
<input type="text" id="s" name="q" value="Search..." onfocus='if (this.value == "Search...") {this.value = ""}'
onblur='if (this.value == "") {this.value = "Search...";}' />
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton"
/>
</form>
</div>

  • Mẫu 5:
CODE:

<style type="text/css">
#helperblogger-searchbox {
border-radius: 5px;
background: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWTatWJYH-Z6M36ddJbCtolbChoEeqmnShdJY32D1y8WHyBu_LHSD7qq9ncw0DL3ptbjulrsSbZ-Nv3BHHc4mNT2LWUS9TAl0XuT0JlYwIdB0La1HseAEMduOS4qy7mUN7mKvy6547k-U/s1600/helperblogger.com-red.png) no-repeat scroll center center transparent;
width: 307px;
height: 50px;
disaply: block;
}

form#helperblogger-searchform {
display: block;
padding: 9px 16px;
margin: 0;
}

form#helperblogger-searchform #s {
padding-left: 24px !important;
padding: 7.5px;
margin: 0;
width: 198px;
font-size: 16px;
font-family: georgia;
font-style: italic;
color: #666666;
vertical-align: top;
border: none;
background: transparent;
}

form#helperblogger-searchform
#sbutton {
margin: 0;
padding: 0;
height: 40px;
width: 74px;
vertical-align: top;
border: none;
background: transparent;
}
</style>
<div id="helperblogger-searchbox">
<form id="helperblogger-searchform" action="/search" method="get">
<input type="text" id="s" name="q" value="Search..." onfocus='if (this.value == "Search...") {this.value = ""}'
onblur='if (this.value == "") {this.value = "Search...";}' />
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton"
/>
</form>
</div>


Chúc các bạn thành công 
Quảng cáo

0 nhận xét:

Đăng nhận xét