0
بِسْمِ اللّهِ الرَّحْمَنِ الرَّحِيْم
Assalamuala’alaikum wr. Wb
Simple-dan-keren-search-box-pack-demo1Blog Si Taufik-Search Box atau kotak pencarian berfungsi untuk menemukan artikel/posting yang terdapat pada blog, dengan adanya fasilitas tersebut pengunjung akan dengan mudah mendapatkan artikel seperti yang mereka inginkan, sehingga penggunjung tidak perlu membuka daftar isi blog maupun membaca judul artikel satu-persatu.

Search Box merupakan fasilitas yang sangat penting dalam sebuah blog, bila cobt ingin menggunakannya kedalam blog cobt caranya sangat simpel dan tidak rumit karena kita hanya menggunakan kode CSS saja dalam membuatnya.
Untuk cara menerapkannya ke blog, Langsung Cekkidot…!!!

Langkah-langkah Membuat Search Box
1. Login ke blogger 
2. Masuk ke rancangan/design
3. Pilih Page Element/Elemen Laman
4. Kemudian Add Gatget dan pilih HTML/Javascript, lalu masukan salah satu kode CSS dibawah ini:

Style 1
kode-blogger_searchbox1 (FILEminimizer)
><style type="text/css"> 
  
#w2b-searchbox{background:url(http://3.bp.blogspot.com/-6qJ3K_tmQ9k/TlcWJNAlejI/AAAAAAAAA-Y/QKGB-vIam_w/s320/kode-blogger_searchbox1.png) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} 

  
form#w2b-searchform{display: block;padding: 10px 12px;margin:0;} 

  
form#w2b-searchform #s{padding: 6px;margin:0;width: 235px;font-size:14px;vertical-align: top;border:none;background:transparent;} 

  
form#w2b-searchform #sbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} 

  
</style> 

  
<div id="w2b-searchbox"> 

  
<form id="w2b-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>


Style 2

kode-blogger_searchbox2 (FILEminimizer)


<style type="text/css"> #w2b-searchbox{background:url(http://1.bp.blogspot.com/-0BBC_Sxrb6k/TlcWJRLmfJI/AAAAAAAAA-g/2E4u2Kbb1K0/s1600/kode-blogger_searchbox2.png) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} form#w2b-searchform{display: block;padding: 10px 12px;margin:0;} form#w2b-searchform #s{padding: 6px;margin:0;width: 235px;font-size:14px;vertical-align: top;border:none;background:transparent;} form#w2b-searchform #sbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} </style> <div id="w2b-searchbox"> <form id="w2b-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>

Style 3

kode-blogger_searchbox3 (FILEminimizer)

<style type="text/css"> 

  
#w2b-searchbox{background:url(http://4.bp.blogspot.com/-Z73Tww42VDI/TlcWJ_LrMQI/AAAAAAAAA-o/Djih0jTihg4/s1600/kode-blogger_searchbox3.png) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} 

  
form#w2b-searchform{display: block;padding: 10px 12px;margin:0;} 

  
form#w2b-searchform #s{padding: 6px;margin:0;width: 235px;font-size:14px;vertical-align: top;border:none;background:transparent;} 

  
form#w2b-searchform #sbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} 

  
</style> 

  
<div id="w2b-searchbox"> 

  
<form id="w2b-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> 


Style 4

kode-blogger_searchbox4 (FILEminimizer)


<style type="text/css"> 

  
#w2b-searchbox{background:url(http://1.bp.blogspot.com/-f2D4_8HmVDw/TlcWKCfDQwI/AAAAAAAAA-w/V6RPSHyHROc/s1600/kode-blogger_searchbox4.png) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} 

  
form#w2b-searchform{display: block;padding: 12px;margin:0;} 

  
form#w2b-searchform #s{padding: 6px 6px 6px 26px;margin:0;width: 215px;font-size:14px;vertical-align: top;border:none;background:transparent;} 

  
form#w2b-searchform #sbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} 

  
</style> 

  
<div id="w2b-searchbox"> 

  
<form id="w2b-searchform" action="/search" method="get"> 

  
<input type="text" id="s" name="q" value=""/> 

  
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton" /> 

  
</form> 

  
</div> 

Style 5

kode-blogger_searchbox5 (FILEminimizer)


<style type="text/css"> 

  
#w2b-searchbox{background:url(http://3.bp.blogspot.com/-dIFRxQlgo-U/TlcWKLZNrfI/AAAAAAAAA-4/lvSOBOBdzHw/s1600/kode-blogger_searchbox5.png) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} 

  
form#w2b-searchform{display: block;padding: 12px;margin:0;} 

  
form#w2b-searchform #s{padding: 6px 6px 6px 26px;margin:0;width: 215px;font-size:14px;vertical-align: top;border:none;background:transparent;} 

  
form#w2b-searchform #sbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} 

  
</style> 

  
<div id="w2b-searchbox"> 

  
<form id="w2b-searchform" action="/search" method="get"> 

  
<input type="text" id="s" name="q" value=""/> 

  
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton" /> 

  
</form> 

  
</div> 


Style 6


kode-blogger_searchbox6 (FILEminimizer)


<style type="text/css"> 

  
#w2b-searchbox{background:url(http://1.bp.blogspot.com/-SLuIDQ0kDB8/TlcW1voR0jI/AAAAAAAAA_A/FNDCIKqyzmk/s1600/kode-blogger_searchbox6.png) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} 

  
form#w2b-searchform{display: block;padding: 12px;margin:0;} 

  
form#w2b-searchform #s{padding: 6px 6px 6px 26px;margin:0;width: 215px;font-size:14px;vertical-align: top;border:none;background:transparent;} 

  
form#w2b-searchform #sbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} 

  
</style> 

  
<div id="w2b-searchbox"> 

  
<form id="w2b-searchform" action="/search" method="get"> 

  
<input type="text" id="s" name="q" value=""/> 

  
<input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton" /> 

  
</form> 

  
</div> 



Sumber : http://kode-blogger.blogspot.com/2011/08/search-box-simpel-dan-keren-untuk.html

Post a Comment Blogger

 
Top