Ada beberapa macam kotak pencarian/search box yang dapat di pasang. Antara lain:
1. Tipe Biasa
HTML Code :
<form id="searchthis" action="http://adhiets.blogspot.com/search" style="display:inline;" method="get">
<input id="b-query" maxlength="255" name="q" size="20" type="text">
<input id="b-searchbtn" value="Search" type="submit">
</form>
<input id="b-query" maxlength="255" name="q" size="20" type="text">
<input id="b-searchbtn" value="Search" type="submit">
</form>
Contoh :
Ganti yang berwarna Merah dengan URL blog anda
2.Tipe Expert
HTML Code :
<form action="/search" id="searchform" method="get" style=" text-align:center;">
<input class="inpsearch" id="s" name="q" onblur="if (this.value == "") {this.value = "Cari Disini";}" onfocus="if (this.value == "Cari Disini") {this.value = "";}" type="text" value="Cari Disini">
<input id="searchsubmit" type="submit" value="Search">
</form>
<input class="inpsearch" id="s" name="q" onblur="if (this.value == "") {this.value = "Cari Disini";}" onfocus="if (this.value == "Cari Disini") {this.value = "";}" type="text" value="Cari Disini">
<input id="searchsubmit" type="submit" value="Search">
</form>
Contoh :
Pada tipe Expert ketrangan akan hilang ketika di Klik (on focus) dan akan kembali lagi ketika tidak di Klik. Kode yang berwarna merah di atas dapat anda ganti sesuai dengan keinginan anda.Tapi ingat ketiga-tiga kata "Cari Disini" saat di ganti nanti harus sama kata-katanya.
3.Tipe Google
HTML Code :
<form method="GET" action="http://www.google.com/search">
<input type="hidden" name="ie" value="UTF-8">
<input type="hidden" name="oe" value="UTF-8">
<table bgcolor="#FFFFFF"><tbody><tr><td>
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" /></a>
</td><td>
<input type="text" name="q" maxlength="255" value="" >
<input type="submit" name="btnG" value="Search">
<span >
<input type="hidden" name="domains" value="http://adhiets.blogspot.blogspot.com">
<input type="radio" name="sitesearch" value=""> Google Page <input type="radio" name="sitesearch" value="http://adhiets.blogspot.com" checked=""> adhiets.blogspot.com
</span>
</td></tr></tbody></table>
</form>
<input type="hidden" name="ie" value="UTF-8">
<input type="hidden" name="oe" value="UTF-8">
<table bgcolor="#FFFFFF"><tbody><tr><td>
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" /></a>
</td><td>
<input type="text" name="q" maxlength="255" value="" >
<input type="submit" name="btnG" value="Search">
<span >
<input type="hidden" name="domains" value="http://adhiets.blogspot.blogspot.com">
<input type="radio" name="sitesearch" value=""> Google Page <input type="radio" name="sitesearch" value="http://adhiets.blogspot.com" checked=""> adhiets.blogspot.com
</span>
</td></tr></tbody></table>
</form>
Contoh :So...Selamat mencoba... Semoga blognya tambah keren.....!!!
Tidak ada komentar:
Posting Komentar