Muhammad Fauzan
Muhammad Fauzan Gue biasa dipanggil “Ozan” lahir dengan sehat pada tanggal 17 Mei 2000, Gue kuliah di UIN Alauddin Makassar, Jurusan Sistem Informasi. Facebook Twitter Instagram

Memasang Widget Search Box Keren di Blog

No comments



Memasang Widget Search

Tutorial kali ini merupakan lanjutan dari artikel kemarin tentang cara membuat search bog keren, kali ini saya mau menambahkan lagi cara membuat 6 search box keren lainnya. Namun sebelum melanjutkan silahkan baca artikel lain saya cara membuat bermacam macam popular post blog keren terlebih dahulu. Lalu pertanyaannya pentingkah search blog ini dipasang di blog anda? Tentu saja banyak sekali manfaat yang bisa anda dapatkan untuk memasang search blog ini di blog anda, search blog ini memudahkan para pembaca blog anda sebagai widget navigasi atau membantu para pembaca blog untuk mengeksplor atau mencari artikel yang diinginkan para pembaca. Dengan demikian para pembaca mudah menemukan artikel atau yang berkaitan dengan frasa kata yang mereka inginkan di blog anda tanpa berpindah ke blog lain.

Cara Membuat search box keren di Blog

Cara membuatnya cukup mudah kok, anda hanya menambahkan widget seperti biasa atau seperti langkah yang akan saya sebutkan dibawah ini :
  1. Masuk Akun blog anda
  2. Masuk tata letak lalu tambahkan widget HTML/Javascript
  3. Masukan kode yang saya berikan ini.
  4. Simpan

Hasilnya bisa dilihat seperti dibawah ini :


 Search Box Versi 1

<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/AVvXsEjd4tmKt4jlXGPshF2DfsNjQwZLavhIj2qtGLjHZH4U29xZgNIRu_FPFpnK1SlsIRB52WdxESrJf3UGMFdL_UlpLingBGxFa7_3Sg5c1RrXiyk9vGjiqWIF1qWtUDT6KLUCIIHxjfnp9kpR/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 Versi 2

<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/AVvXsEjd4tmKt4jlXGPshF2DfsNjQwZLavhIj2qtGLjHZH4U29xZgNIRu_FPFpnK1SlsIRB52WdxESrJf3UGMFdL_UlpLingBGxFa7_3Sg5c1RrXiyk9vGjiqWIF1qWtUDT6KLUCIIHxjfnp9kpR/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/AVvXsEjePHg44qgNGbtiTGyq0WBsyamlV7FoW_56D6cVccZFUdLN8kU0F8buZYwY7awSxxI4U-nf2BC2z8-ptUpVLntczQn09IH8seMKMmtWa7Akrn0rm9mp-HTBsohyphenhyphenfE3w6hyARIknzUL7ySgD/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 Versi 3


<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtpImek19nqMfx1ICru_flvILkx6wyvJzY2vxjlaV7zXx5m_RhQoPRAP69wpmeX-AuhZZFKEU2mhkaMuONwRca48FFD1BK2EcCxeDcVrvRwgfh2AjNtsGWQ1nKvS3GrA6DB06v_h-GNIWb/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/AVvXsEiyAxK-q5CYbxbUx4ZAX93xTjVOq3IjLSqtfalskCuMoqzWHOWPy-eQY-iSd9PXZO1K5sRI5TbvwgtWl6cxyHJx3OtnnOMCEglyXjuntgJdY73U7lP3t9ZUZW57-5wAST7exUy6zPC8lavb/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/AVvXsEhhBtOFZLpZrz_6iWap1tA_p3BUAXNr9OQd6yyTCHubdP3DFJS3MHAicGOiqXDUPfHzY42My9poFC3jSCBm3MJ6g1EKT6RqCDQeN9uJidVQ7kGv3y3B7HC8a3thqz3lB7K_1lU9olpQs3Pa/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhBtOFZLpZrz_6iWap1tA_p3BUAXNr9OQd6yyTCHubdP3DFJS3MHAicGOiqXDUPfHzY42My9poFC3jSCBm3MJ6g1EKT6RqCDQeN9uJidVQ7kGv3y3B7HC8a3thqz3lB7K_1lU9olpQs3Pa/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 Versi 4

<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIhbRp3u6f_0323AlNpcUsbY_3k12Toba0c8aRRBOPez0KZCgHiMcim2KCYQvMb-C1XUfamsjpIvGDqGzZi3T0ykulpbZDYnO2jkMzMzNvG9czIx-8JcHzinmB7vZWMpExl_NQrV2Sp7mH/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/AVvXsEgMV_gqLeoYe5JMKpURiwV8TxUalv2GfEp1GEh3bW4nRgVcf1IvjUzFPeVp5DihiM359lGKJrVyNAAeXk_bjNw3wuNUG8-EOBRSohPMoERNDf2FjwtpKW29O3zkj9M2VBYFfkuHTw11l004/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/AVvXsEjWdCbDqa4GQJ6CfCDKiDZvhV4w5l84hvmDn5_nUqozNM-YRc2u2T9WlaKG1TrcPxhhpXGyOhsEDspg4VnbrlnMuPU1s6LMeTguMqkfcFjdefEeEeHBaEWYE8u51ixvyn2txXSWN4pKmtcc/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 Versi 5

<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5I998xqgh7UovEEn9ShDH07qSXvemEkAF9kVkiTEfVT0OjQehviOulJJiFe2oMyfWC_f70BnNRgtg1v71NfVZqhyFUE7NZoBrVBWBj-1caH6M85i5C1XJ5ny54m2uAjrXXW9ALB2Oa0Jt/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/AVvXsEikILgyDlVW1WYNX-Gn7DoOn2TZHi25akpqfj4b2gOWf4wUB9lBpchsggGBSqWT93dI9hMK0VRwE85EalWUgOYyLC3MNThiZskz381Z0Njc3UYKwWV0dmhY2-iHd_SDgRcKBQitGMiOi9J0/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/AVvXsEgbbW0hDjWWw3eWoSCU0bTk4LtBabTV5VIt603JcbkyNtUdchvqZKFXUuzuV48-wfL3dNIlHoO4PAWjrLhui0v7EyQsa2vRErAkdflhf_AI_Xek0cAa8GM3kaY5POKGyHoNPWMFS70NGItS/s1600/magnifier-hover.png) no-repeat;
}

#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbbW0hDjWWw3eWoSCU0bTk4LtBabTV5VIt603JcbkyNtUdchvqZKFXUuzuV48-wfL3dNIlHoO4PAWjrLhui0v7EyQsa2vRErAkdflhf_AI_Xek0cAa8GM3kaY5POKGyHoNPWMFS70NGItS/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 Versi 6

<style>
#searchbox {
width: 280px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7rjUGVlQlTfhEnzBLRCsP6Tl6u5QSeWuazAcHlSy3oOvKmky0DqsuEaSiOX6qQv84RFOny7BhSqcBons_clgG-dU6M86jspU5ZhTFy4AJU5QlHGcEQkSj7dxkNAcLaMQ9EGEhRKM9vW_7/s1600/search-box.png) no-repeat;
}

#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: transparent;
border: 0px;
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 14px;
color: #f2f2f2 !important;
padding: 10px 35px 10px 20px;
width: 220px;
}
#searchbox input[type="text"]:focus {
color: #fff;
}

#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiunmzu9cFaPDRmpTRmKfmMuspQ-GBlgfi79YyKiX0wBPfVJ_xDhpNkxdI7djaORuQgo7ZaqErqhJUpGzQvIYzEuwgKpFWkHIbm2-QCXYtwSFi-bkctWm3FebwvS7FxuxiFj9Wf6pA39Lxa/s1600/search-icon.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 40px;
height: 50px;
}

#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4ElJjQvDkHuQdX_WmCIbnq4fbIrKJFLhFxjtM__lBFuJ-v_emIDVIeDiLPADGCk-tDVmHgIGV73kjPWXOOUz0J8r74Eh_ILzIuj6DmVnEKKO99EDPgNajqR2RtS-8KCLfjUJgNWPltlCO/s1600/search-icon-hover.png);
}
</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>


Segitu dulu tutorial kali ini. Jika ada pertanyaan, mari berjumpa pada kolom komentar di bawah. Semoga bermanfaat!.

Muhammad Fauzan
Muhammad Fauzan Gue biasa dipanggil “Ozan” lahir dengan sehat pada tanggal 17 Mei 2000, Gue kuliah di UIN Alauddin Makassar, Jurusan Sistem Informasi. Facebook Twitter Instagram

Comments

Lorem ipsum dolor sit amet, consectetur adipisicing elit, !