Header Ads

Membuat Widget Search Box

0 comments
Membuat Widget Search Box


Apa manfaat dari Search Box (kotak pencarian)...?
Search Box dapat memudahkan para pembaca blog sebagai widget navigas atau membantu para pembaca blog untuk mengexplore/ mencari artikel yang dibutuhkan. Sehingga para pembaca terbantu dalam memudahkan pencarian artikel atau yang berkaitan dengan frasa kata yang mereka inginkan diblog tanpa harus berpindah keblog lain.

*
Cara memasang/membuat Widget Search Box

Anda dapat menambahkan Widget seperti biasa atau seperti langkah berikut ini:
  1. Masuk Akun blog anda
  2. Masuk tata letak lalu tambahkan widget HTML/ Javascript
  3. Masukkan kode-kode berikut dibawah
  4. Simpan

Search Box-1
Kode HTML:
<style>
    #searchbox {
        background: #d8d8d8;
        border: 4px solid #e8e8e8;
        padding: 20px 10px;
        width: 250px;
    }

    input:focus::-webkit-input-placeholder {
        color: transparent;
    }

    input:focus:-moz-placeholder {
        color: transparent;
    }

    input:focus::-moz-placeholder {
        color: transparent;
    }

    #searchbox input {
        outline: none;
    }

    #searchbox input[type="text"] {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtnDKJh9kClsN2DUW1dqiqBePx6lyCwTpTnGIy76fXLVZ4x9H-jwR9X_M9CJ1KzY1YLr2yBXhvK5_4mvcKapFvGyR5rkAmgwfmKMzcg3vs7VXusa6uPbbNCw8v0ZJt-Y_Fox0Nj4ySaqbL/s1600/search-dark.png) no-repeat 10px 6px #fff;
        border-width: 1px;
        border-style: solid;
        border-color: #fff;
        font: bold 12px Arial,Helvetica,Sans-serif;
        color: #bebebe;
        width: 55%;
        padding: 8px 15px 8px 30px;
    }

    #button-submit {
        background: #6A6F75;
        border-width: 0px;
        padding: 9px 0px;
        width: 23%;
        cursor: pointer;
        font: bold 12px Arial, Helvetica;
        color: #fff;
        text-shadow: 0 1px 0 #555;
    }

    #button-submit:hover {
        background: #4f5356;
    }

    #button-submit:active {
        background: #5b5d60;
        outline: none;
    }

    #button-submit::-moz-focus-inner {
        border: 0;
    }
    </style>

    <form id="searchbox" method="get" action="/search">
    <input name="q" type="text" size="15" placeholder="Type here..." />
    <input id="button-submit" type="submit" value="Search" />
    </form>

Search Box-2
Kode HTML:
    <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/AVvXsEgtnDKJh9kClsN2DUW1dqiqBePx6lyCwTpTnGIy76fXLVZ4x9H-jwR9X_M9CJ1KzY1YLr2yBXhvK5_4mvcKapFvGyR5rkAmgwfmKMzcg3vs7VXusa6uPbbNCw8v0ZJt-Y_Fox0Nj4ySaqbL/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 #f7f7f7;
    width: 200px;
    padding-left: 10px;
    }

    #button-submit{
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuga-75W4Z1AM6lGecwz9ZCN6EXewgq6T6q6FPIqZP_TF0MQbIf9JcugBOFBP372-2C5lnEWf257xBXo_6yLbf30ljzlmAYGRCYnkOrwMe1LOnMkV9tNcSNwsrTnLDg1jDW3AvuTMcM8Xy/s1600/slider-arrow-right.png) no-repeat;
    margin-left: -40px;
    border-width: 0px;
    width: 43px;
    height: 45px;
    }
    </style>

    <form id="searchbox" method="get" action="/search" autocomplete="off">
    <input name="q" type="text" size="15" placeholder="Enter keywords here..." />
    <input id="button-submit" type="submit" value=" "/>
    </form>

Search Box-3
Kode HTML:
  <style>
    #searchbox {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc7ul37fMwtAPMLSyeaPHChRQlVX10qo4oh9bPpXWKsu_KFi2rquvuGSJOpnsrJz_65mczzgsbEDGKcZ47pQJgPw_J_zTU8rdCxFxWaLVp1wrErzWavKgv9aGavhXujVZU_UBtS1EZRmYm/s1600/searchbar.png) no-repeat;
        width: 208px;
        height: 29px;
    }
    input:focus::-webkit-input-placeholder {
        color: transparent;
    }
    input:focus:-moz-placeholder {
        color: transparent;
    }
    input:focus::-moz-placeholder {
        color: transparent;
    }
    #searchbox input {
        outline: none;
    }
    #searchbox input[type="text"] {
        background: transparent;
        margin: 3px 0px 0px 20px;
        padding: 5px 0px 5px 0px;
        border-width: 0px;
        font-family: "Arial Narrow", Arial, sans-serif;
        font-size: 12px;
        color: #828282;
        width: 70%;
        display: inline-table;
        vertical-align: top;
    }
    #button-submit {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV6QWDfjN2bU02bRclgf9of4-XIa0gD6A6_WqGmkZjz9TXYBd5hpO_yLNxgeVj3XD8IATU7Nt3dCRTF4Kb2LtSh-rDf2xSolwYMO-mcWOUWesd5sQ-ALH0lo5Qkn3hv_UKA0FbHKYNlW-P/s1600/magnifier.png) no-repeat;
        border-width: 0px;
        cursor: pointer;
        margin-left: 10px;
        margin-top: 4px;
        width: 21px;
        height: 22px;
    }
    #button-submit:hover {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwaxj9wsxpwR7_IQhmikeg8FhwTxnaTvxY3zCPHpDH2d_03726sHJWeaLsh0UQOPer0gd-bHgJ656MX7oQSNcaciYKq6wUw8uldmXsK9vDN0hkqNdlv9SAWRYuTJSgGSMMF0HWGl3ani-e/s1600/magnifier-hover.png) no-repeat;
    }
    #button-submit:active {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwaxj9wsxpwR7_IQhmikeg8FhwTxnaTvxY3zCPHpDH2d_03726sHJWeaLsh0UQOPer0gd-bHgJ656MX7oQSNcaciYKq6wUw8uldmXsK9vDN0hkqNdlv9SAWRYuTJSgGSMMF0HWGl3ani-e/s1600/magnifier-hover.png) no-repeat;
        outline: none;
    }
    #button-submit::-moz-focus-inner {
        border: 0;
    }
    </style>

    <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>

Search Box-4
Kode HTML:
<style>
    #searchbox {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4pe3QTS61dwaV8Q9CiNe_0Qqfl2cOI0vJ-29reVyr8iOu8y0BHiiDLuDkislei3rm-3oZcka3n3Gb6IKhh2VDHNNhYHbRoZZJ7zVAKDKjQb2kgelvavY1ITbWakLSlFVUdOgXHGP-Aki-/s1600/search-box.png) no-repeat;
        height: 27px;
        width: 202px;
    }

    input:focus::-webkit-input-placeholder {
        color: transparent;
    }

    input:focus:-moz-placeholder {
        color: transparent;
    }

    input:focus::-moz-placeholder {
        color: transparent;
    }

    #searchbox input {
        outline: none;
    }

    #searchbox input[type="text"] {
        background: transparent;
        margin: 0px 0px 0px 12px;
        padding: 5px 0px 5px 0px;
        border-width: 0px;
        font-family: "Arial Narrow", Arial, sans-serif;
        font-size: 12px;
        font-style: italic;
        width: 77%;
        color: #828282;
        display: inline-table;
        vertical-align: top;
    }

    #button-submit {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5gPjsnVPJIB-3VepQC6Yq2UXJphpXg_3wQMDbyepa8NijV6SUlJ6PUM6V5uEcWnlBJENpnuGaR0vUH-HkqrnSZ5xREaet9_wQzUnhF-quID6fBPvaJwo6rdZAuu5n8iDScatyiHaowxiN/s1600/search-button.png) no-repeat;
        border-width: 0px;
        cursor: pointer;
        width: 30px;
        height: 25px;
    }

    #button-submit:hover {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdyU7R0Vm-8wKice0m86bEt9Wf-qRRaeM4yqlb2chKagz55SjIZMhMpmO_SFBBlGbCp_pOa2Om1jiwIUo7PI5BWBVtKMS5BeadXiDcg_khzufkkrRwS7IOvDSAevu0d9SBTi7HKL5yGT9h/s1600/search-button-hover.png) no-repeat;
    }

    #button-submit::-moz-focus-inner {
        border: 0;
    }
    </style>

    <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>

Search Box-5
Kode HTML:
<style>
    #searchbox {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbnEk-ao18G61YENQ9-x_K9kWWBVZ5wrR9we9QdUvYPkcTCM6_ozUFhharsZ9sYwXjudr84rgYhbsMfTd9iFLGOmBhsvDRGUMvQslvFykW6Dw2VaUzrMrFmXdb4bdeC_cl36efMrrCLIdF/s1600/search-box1.png) no-repeat;
        width: 250px;
        height: 65px;
    }

    input:focus::-webkit-input-placeholder {
    color: transparent;
    }

    input:focus:-moz-placeholder {
    color: transparent;
    }

    input:focus::-moz-placeholder {
    color: transparent;
    }

    #searchbox input {
        outline: none;
    }

    #searchbox input[type="text"] {
        background: transparent;
        padding: 5px 0px 5px 20px;
        margin: 10px 15px 0px 0px;
        border-width: 0px;
        font-family: "Brush Script MT", cursive;
        font-size: 12px;
        color: #595959;
        width: 65%;
        font-weight: bold;
        display: inline-table;
        vertical-align: top;
    }

    #button-submit {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4x2MsgEq6XzPjsJb4Smnsf20jo2R_9W0uoqP-matu9NUmheno_F85RHkNY89ZDjwmlQwFBGPDzYudXmEZ5rJn9YmWRRYIvGiVRMAHRyUwossAzTMiwSw-3BtEzqMh1seymdtxTLCoP3dj/s1600/magnifier.png) no-repeat;
        border-width: 0px;
        cursor: pointer;
        margin-top: 10px;
        width: 19px;
        height: 25px;
    }

    #button-submit:hover {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpuD_ZNSVpaLY5D8kC_wmc4eL00xDogQP_BD6bkWWGt6kmUMLiT5PlSxTyXqKtnSp_5EFK9OWoYATUzb-dHD3s7z6naGsey0jfsqYCudDVUMQCLp0_wo4pdDTs5r_hiLZ_MIeyqZLjSUJL/s1600/magnifier-hover.png) no-repeat;
    }

    #button-submit:active {
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpuD_ZNSVpaLY5D8kC_wmc4eL00xDogQP_BD6bkWWGt6kmUMLiT5PlSxTyXqKtnSp_5EFK9OWoYATUzb-dHD3s7z6naGsey0jfsqYCudDVUMQCLp0_wo4pdDTs5r_hiLZ_MIeyqZLjSUJL/s1600/magnifier-hover.png) no-repeat;
        outline: none;
    }

    #button-submit::-moz-focus-inner {
        border: 0;
    }
    </style>

    <form id="searchbox" method="get" action="/search" autocomplete="off">
        <input class="textarea" name="q" type="text" size="15" placeholder="Search here..." />
        <input id="button-submit" type="submit" value="" />
    </form>


Search Box-6
Kode HTML:
<style>
    #searchbox {
    width: 280px;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbgXfpy9ytQGVCfLI5PJNqaWOEnPdwpy48-BqjTCEOYuoGXibVou6BImeC8QxTccxgz5T1QbKqJmo6n7TNFksxLJpmYxLfGAofv5B7R791cBN0JjJUSXynBho4yHr9Qo8htCgnRE5NzvcQ/s1600/search-box.png) no-repeat;
    }

    #searchbox input {
        outline: none;
    }

    input:focus::-webkit-input-placeholder {
        color: transparent;
Lihat Peta Lokasi
Klik/Tab Gambar
ELSA CAKE

Postingan Populer

Postingan Terbaru

Header Ads