Only Just Info

TIPS

Cara Membuat Search di Blogspot

Namun tenang saja, sobat tidak perlu repot lagi, karena sekarang sudah diconverted ke blogger. Jadi, tinggal copy paste kodenya saja. Cara pemasangan :
  1. Log in ke account blogspot anda
  2. Dashboard >> design >> page element
  3. Add a gadget >> html/javascript
  4. Copy paste salah satu kode kotak search di bawah ini >> save
KODE DAN STYLE KOTAK SEARCH
Style 1
<style type=”text/css”>
#w2b-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlV8jGAfXBLKEocB6anOe7Tb4qYi27ECwwJOVPf7y9tKa5VBF47Ro2OSCQvKRLXXYSKGaYB3wmkP01P2s1pz4UV1VRn2E_3_NmXbcoAxicnQyqz_7vHvgdJKLPO5AZ4tbHorqMhVJQuI5b/) 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

<style type=”text/css”>
#w2b-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEkU6nlLGkJecVtZ4akU4-lqvfnG-yTcBnlPYMPq9phC-Lko0M_m4XoJ1I5DBoUAsDSfz1hGkcV2rDhSf1pNVcd1les8hStam87mSIIFUPRM3XAhggaElwaqCEzIA5IKQNqFq9jNZDXopN/) 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

<style type=”text/css”>
#w2b-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg3r1oWSCkWIZV8nZmlU7a5KMu4wnfRPBK2Qsril96g-A7B8JDHdcwZv1r7VLe3UrOs9cUCyPJ-9tMlOWvqoAmo8HKBpw_tJygqf0UaLTKuVUEsuSwoFkq-Tr-ERTVZNxXWfkptqfTAYK1/) 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

<style type=”text/css”>
#w2b-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2VgzrrqXoTfE-356-wsXiqqxu2CT0oJ_5UVHDAw06_QR3_-64bXX6bCyDZUIkynOj6M7s0Tk72TRXS7hvaltR6LDoVhfvTzjKXbzqCbmwjUJVyUJqXkZRpkO39u9BZmO4cYjVL_YWFyG7/) 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

<style type=”text/css”>
#w2b-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1gmBCAldG6Y7Mfmoo30Niif7izQNn9NI2R9Jdysrlcx-TBwZYn7IgrJoqaJ_Ck2zoyAw4gOqhAeGumBKcfFdwtlayPI-jK7k3fCRKH7KVgNVk0rjj418_1UUuZPFWZoZpmbKthusWUPTb/) 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

<style type=”text/css”>
#w2b-searchbox{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTtmD89xt5HXl1ff5BCrx_iQIISmjWvk7p-TSZmq-C0rGXCIBfDYQoqz3XWHOZmD2nST_KSGHOwXx3RTmK_i3J84xlFfSse2o8OtWbK34hT1cfy1iBKzq2_9r79yrxX7-FLfqhUtHxDAkN/) 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>
Tambahan tips : Jika ingin membatasi hasil pencarian maka copy paste kode di bawah ini di atas kode </form>
<input type=”hidden” id=”justnothing” name=”max-results” value=”10″/>

Tidak ada komentar:

Posting Komentar

Entri Populer

Entri Populer

Thanks You