2/3/13

Search - Khung tìm kiếm đẹp cho blogspot - Thủ thuật

Thủ thuật Blogger hôm nay mình giới thiệu tới các bạn là thêm hộp khung box tìm kiếm cho blogspot. Ở bài viết Khung tìm kiếm cho blogger mình cũng đã giới thiệu cách thêm thủ thuật này. Tuy nhiên, ở bài viết này mình giới thiệu nhiều mẫu hơn, và màu sắc có vẻ 3D trong và sắc nét tươi tắn hơn ^^
box search for blogger
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/AVvXsEj_b7ZqefdJGqSSV9iOO2MwwE8jHaz6_JP92rbRBh3OIoBNQ8GHBbarMvCwOXpuFM7Z0CVSdMdM6CobsQg__zder7P17uTY0Cq5WkKKtFvNY9tXbO2VlGoz02SjQhPjlSUa5TMrIRlu9nc/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/AVvXsEg_ksYA3SsbduMPFS1Of-WuAFvTKN0LxqyD5GEmB2DPKuLDJeSoAYEBWI9ImOQnqVKaBxdmlLpdKdP4OTN0pmuuhqq_xftmo3ekyW0oHvE4uO_XRFjovFI7KHa7Q47cyIao9yWkk9op15Q/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/AVvXsEhLj_vtDkt-NQXLeN0h0xHQFx2B-n0Hv3vfmohr-oEFMPlN0JTF8sCxjHmQpBBKKNAQsoBn_dgCXP3KF3IcAGFMcT5yKtXL9Lbq38uZPhNCUPuWG4-B0eRF8kcS1WI0hHKEwtYOyfXPgwk/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/AVvXsEgDwwajRrcT39OMCbMFer9hOxXUtyOr0U9O5gL7AkuEzo4R3tjmn4N21RH-gLu7-zKOqQ7H5syQnoHwrODfkj3YqYAU8c5TMf6K9ujLhAStPOT09jwLEbGq2KEjDKKmZOY_6ay-FCaygiA/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/AVvXsEiY5xOccEa1N1-9KnH-aaFqTAKGl9nCpamF6NeRHgW6wmeIm0tutSK76hDYxWbxsFSrYKySFdYJbsLtE1vOtWqSzgswQTicK8jMHzsQCubPq3HxYFE-0MN6xG7VvIDjFS0QAS7tbgUYlT8/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 !

0 nhận xét:

Post a Comment