Baru-baru ini saya ingin memasang widget kotak pencarian atau penelusuran (search box). Blogger memang telah menyediakan widget kotak penelusuran ini, namun saya ingin mencari dari sumber yang lain.
Setelah mencari-cari, akhirnya saya memutuskan untuk menggunakan widget kotak pencarian yang disediakan oleh BLog Bamz. Di sana ada 6 pilihan widget dengan warna-warna yang berbeda. Jadi, kita dapat memilih widget yang warnanya senada atau serasi dengan warna template blog.
Saya sendiri memilih warna widget yang mendekati warna putih dengan tombol gambar "lup" berwarna merah yang menurut saya tidak terlalu kontras warnanya dengan blog ini. Sedangkan mengenai posisinya, saya letakkan di sebelah kanan header.
Berikut ini saya hadirkan screenshot dari widget-widget kotak pencarian keren tersebut beserta kodenya masing-masing. Cara pemasangannya adalah login ke Blogger > Opsi lainnya > Tata Letak > Tambah Gadget > HTML/JavaScript > Copy kode widget dan paste di Konten > Simpan > Klik dan seret gadget ke tempat yang Sobat inginkan > Simpan setelan.
Kotak Search 1 |
<style type="text/css"> #a-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAjacETSoS-rz51DOd0_IyppJpTU-MEWA1WAzD-fXV-CgYIxui1QUX2z3JlKjgAjfWjhOFCTXyd61Bmg07ZyMDyPqD_3UV-0BIhe_R-syv3AHixeJAmBbsGjxRD8LK8IW1spBmGBh78LGR/) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} form#a-searchform{display: block;padding: 10px 12px;margin:0;} form#a-searchform #a{padding: 6px;margin:0;width: 235px;font-size:14px;vertical-align: top;border:none;background:transparent;} form#a-searchform #abutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} </style> <div id="a-searchbox"><form id="a-searchform" action="/search" method="get"> <input type="text" id="a" 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="abutton" /> </form></div>
Kotak Search 2 |
<style type="text/css"> #b-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyAnIl1eCJAk1v28t5qdViJwpqKWYAhLXQX7uJQuuCMiw_l2op6uy6_EXBSPSHqEzRxmkNeYDWfEPKZk3HVq_33hW_ToywHvKzzSpnlUiHktla4-F9mVLVnoeWpVF1BKI7Hu4agRXn-mgH/) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} form#b-searchform{display: block;padding: 10px 12px;margin:0;} form#b-searchform #b{padding: 6px;margin:0;width: 235px;font-size:14px;vertical-align: top;border:none;background:transparent;} form#b-searchform #bbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} </style> <div id="b-searchbox"><form id="b-searchform" action="/search" method="get"> <input type="text" id="b" 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="bbutton" /></form></div>
Kotak Search 3 |
<style type="text/css"> #c-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLxRQg4jzFTpF44pZg5lprF0s9czZ-tAakkOjLuMFrk7GBUvDBRNKGAYUI9wDi8atGv7TvtJfjuD_2QFdiH5s2RMfzCSoLVJByZl6uzyPDwFgxq99quRbRNX9gimIzimHrzk5_W7CmlFr/) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} form#c-searchform{display: block;padding: 10px 12px;margin:0;} form#c-searchform #c{padding: 6px;margin:0;width: 235px;font-size:14px;vertical-align: top;border:none;background:transparent;} form#c-searchform #cbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} </style><div id="c-searchbox"><form id="c-searchform" action="/search" method="get"> <input type="text" id="c" 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="cbutton" /></form></div>
Kotak Search 4 |
<style type="text/css"> #d-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj90hiSChsxTleHXbxVoF_rf6Bdj4lnlUuoQITW2Pbo8K8o7qxZecOfk8RfHIzJCvITb2Grtrd3V0MfmQlw4wBjX2BVgeELaIEkrgEnyOAwLVlQMJPliLWpfAZZFycsb6ZtSodxgT99ffwa/) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} form#d-searchform{display: block;padding: 12px;margin:0;} form#d-searchform #d{padding: 6px 6px 6px 26px;margin:0;width: 215px;font-size:14px;vertical-align: top;border:none;background:transparent;} form#d-searchform #dbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} </style> <div id="d-searchbox"><form id="d-searchform" action="/search" method="get"> <input type="text" id="d" name="q" value=""/> <input type="image" src="http://img1.blogblog.com/img/blank.gif" id="dbutton" /> </form></div>
Kotak Search 5 |
<style type="text/css"> #e-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCKjw7L2nIXUntd7kBOyZEZXqi2Rl5RUf7p1WtIw5lLzNtaiXVWDNZco4PYSkTKI5iy2SXou8AB3Ypwq_wVO0olOUoF_kXP6mfuu8lv1h4ISw_GJKaRnHJJZTo5Zw-uncrxjlTUVUdIgAJ/) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} form#e-searchform{display: block;padding: 12px;margin:0;} form#e-searchform #e{padding: 6px 6px 6px 26px;margin:0;width: 215px;font-size:14px;vertical-align: top;border:none;background:transparent;} form#e-searchform #ebutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} </style> <div id="e-searchbox"><form id="e-searchform" action="/search" method="get"> <input type="text" id="e" name="q" value=""/> <input type="image" src="http://img1.blogblog.com/img/blank.gif" id="ebutton" /></form></div>
Kotak Search 6 |
<style type="text/css"> #f-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEInOW6RByWr4zd_qyocgErv1WdBbqoFcxvIP-H2SPGcWFHNr1Ji48lP0YDUdAt_FKzP87ezPdsQ6XH4MU5k___vXXpgmO3E3GvXgBqR1f60oDoakSckNM9HBpxn8qxrm94eIWsMtzDymh/) no-repeat scroll center center transparent;width:307px;height:50px;disaply:block;} form#f-searchform{display: block;padding: 12px;margin:0;} form#f-searchform #f{padding: 6px 6px 6px 26px;margin:0;width: 215px;font-size:14px;vertical-align: top;border:none;background:transparent;} form#f-searchform #fbutton{margin:0;padding:0;height:30px;width:30px;vertical-align: top;border:none;background:transparent;} </style> <div id="f-searchbox"><form id="f-searchform" action="/search" method="get"> <input type="text" id="f" name="q" value=""/> <input type="image" src="http://img1.blogblog.com/img/blank.gif" id="fbutton" /> </form></div>
Silakan pilih-pilih, dari keenam widget kotak seacrh di atas yang mana yang Sobat suka. Selamat mencoba memasangnya di blog Sobat..
Tidak ada komentar:
Posting Komentar