Komponen pencarian sangatlah penting untuk ditambahkan pada aplikasi atau website anda, sehingga orang-orang yang menggunakan aplikasi anda sangat mudah untuk mencari data.
Script berikut dapat anda gunakan pada website anda dan anda pun dapat mencustomize sendiri.
=================================
<table border="0" width="100%">
<tr>
<td width="40%" valign="middle" align="right">Tahukah Anda ? </td>
<td width="50%" valign="middle">
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Search...." />
<input id="button-submit" type="submit" value=" "/>
</form>
</td>
</tr>
</table>
<style>
#searchbox {
width: 240px;
}
#searchbox input {
outline: none;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ8OxmsWF8_cwURDQBrTrB2CgN28TWFCDIOWdf_PjBXDkLnhikgTokEuHPrbOXfDOSGCb1OmTkKPaH94OQDLDws4VqAajkcVyNRELgQnX6ZKsRqAbQeR_k7GyQGryIVFZuNd-mEOc7T321/s1600/search-dark.png) no-repeat 10px 13px #f2f2f2;
border: 2px solid #f2f2f2;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #6A6F75;
width: 160px;
padding: 14px 17px 12px 30px;
-webkit-border-radius: 5px 0px 0px 5px;
-moz-border-radius: 5px 0px 0px 5px;
border-radius: 5px 0px 0px 5px;
text-shadow: 0 2px 3px #fff;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}
#searchbox input[type="text"]:focus {
background: #f7f7f7;
border: 2px solid #000000;
width: 200px;
padding-left: 10px;
}
#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb5YRSifSew4u1Y7QC_a89tqYm2F5fAalhnHLF9PyA1nK6NYKggQV4iRVM0Eajxkv5WXMLR4vfaHrRsVD3T0e14Y6rcWb7jvqSrtkEUUzbZ5rAqol6THdqgfWhAG0ffslY2dBWD7m9cFma/s1600/slider-arrow-right.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 43px;
height: 37px;
}
</style>
===========================