Jumat, 19 Oktober 2012

Form search box halaman error

Form search box dalam halaman error berguna apabila pengunjung situs Anda tidak mendapatkan artikel yang mereka inginkan. Anda dapat menambahkan form search box atau kotak pencarian untuk lebih memudahkan bagi pengunjung untuk mendapatkan artikel.

Berikut kode sederhana cara membuat form search box untuk halaman error di Blogger atau blogspot.

<form method="get" action="/search">
<table width="100%">
<tr>
<td><input type="text" style="width:95%;padding:2px;" value="Cari blog ini.." onfocus="if (this.value == &quot;Cari blog ini..&quot;) {this.value = &quot;&quot;}" onblur="if (this.value == &quot;&quot;) {this.value = &quot;Cari blog ini...&quot;;}" name="q"></td>
<td><input type="submit" Value="Search"></td>
</tr>
</table>
</form>

<form method="get" action="/search">
<table width="100%">
<tr>
<td><input placeholder="Type here..." class="input-text" type="text" value="" onfocus="if (this.value == &quot;&quot;) {this.value = &quot;&quot;}" onblur="if (this.value == &quot;&quot;) {this.value = &quot;&quot;;}" name="q" /></td>
<td width="64px"><input class="search-submit" type="submit" value="Search" /></td>
</tr>
</table>
</form>

  Share

Tidak ada komentar:

Posting Komentar