Hướng dẫn tạo khung search cho blogger

Xin chào các bạn, đã lâu rồi mình không đăng bài về thủ thuật blogger. Nhân tiện hôm nay thấy xôn xao vụ khung search trên blog nên trong bài này mình sẽ hướng dẫn cho các bạn cách tạo 1 khung search với 6 kiểu thật cool . Bắt đầu nào !
  • Bước 1: Đăng nhập vào Blogger => Chọn Bố cục => Thêm tiện ích( Chỗ mà bạn muốn khung search xuất hiện).
  • Bước 2: Chọn HTML/Javasrcipt và nhập vào phần nội dung 1 trong số những đoạn mã ở khung search bạn thích bên dưới
  • Bước 3: Lưu lại => Tận hưởng.  

  • Mẫu 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/AVvXsEiNF3gk3NVTSx0smC172GDLsmDg-vBGAxttMHa72eKaZJHQAm5dD94zyrS85fSKZUVjJITsqnOoNa5tgaP-73QP3XkJ5VV2t-wt10Tu6L1OuhrNXKcJmrh_Rf_mSSeLcfBXIpXuugBeHe1T/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>


  • Mẫu 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/AVvXsEiNF3gk3NVTSx0smC172GDLsmDg-vBGAxttMHa72eKaZJHQAm5dD94zyrS85fSKZUVjJITsqnOoNa5tgaP-73QP3XkJ5VV2t-wt10Tu6L1OuhrNXKcJmrh_Rf_mSSeLcfBXIpXuugBeHe1T/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/AVvXsEiXkCUgOcid7nodk9vt7KZaVeKz5qwqOS4_33Zj5hDJbrKWT0gLXaIJL_fSKMMaABxpOXev6VW1vl37jtGQOWztbl4VY7NQdLKdYx0ht-bOORu3Y3N-8FudeAOCx5k4s-CjQkWRtx8Ny5b4/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>

  • Mẫu 3
<style>#searchbox {    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS1IG75D0jemtKxFSUI5UYvF7yalt87eBHDxqDFz8Z6uc5GO4NDDAR0f9mp-SvNnlpQNbxnh83rmC_AN82m2Q50JuldlA0zfyS-ueb4Oc_cEyl4-s8aKYbSLoxpTYRayy9ViRQYhh-47h7/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/AVvXsEhij7AgXhYW6FVEUmUTf3nIbf9b78Fqkn3ooLwjB9oXIZv92D0RJH2jmk8y81TQDlWsBk9kzx7D5U0REH4kzHSmxqY5l6bqI8qqK06ELjhR8cZOyXNdf-lfHiwHHQI9njttRkyuGZ5_iYNF/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/AVvXsEjdNnkNu_LyNIV7AJwtE-nmILX0jM6ujYMEno2b9hlg4P8kgyw4n-Lke7IDPSIC22tECrcF8dmIWS-NaP3PzycbjwlWAxdqyVP4m5Kp1qgtXhOQpnHBtawWdjqyXpx7ZCAeh-HRmvhGZGC3/s1600/magnifier-hover.png) no-repeat;}#button-submit:active {    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdNnkNu_LyNIV7AJwtE-nmILX0jM6ujYMEno2b9hlg4P8kgyw4n-Lke7IDPSIC22tECrcF8dmIWS-NaP3PzycbjwlWAxdqyVP4m5Kp1qgtXhOQpnHBtawWdjqyXpx7ZCAeh-HRmvhGZGC3/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>


  • Mẫu 4
                                
<style>#searchbox {    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLO0isq6ouQ4vJ_rAVrwW1yes5hmYWfpTo1vxagqUB_lsJ65F6BjtZZLRWzrmKWulMeldAHQ8P7ev6o0Kw51-8H_a7uNSO55Iwa0CVF3Fz0gcOk7mSI7SH6NWU2CnbLXNYD7VV75VyXYL8/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/AVvXsEhrtuwscp6FJDUZNW2p7U9Nz0EpiI1AJqPp5heUxf6gL02kROEmZYvBmJgGmSYyXNhrXcxvOrAeq3xV6kAECV7aIz4NQCpxHvsUbsMfA7e0B7xjJ4HeWZO5bToRptXnVFU9U-bA8RgF589D/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/AVvXsEjByiDcUNARJkjxLOgma4MrPRTSo-2eBLd-er9VfpAezZm9Z1MMiKAI2eqaeFnlzU6YIPLAi4qkipXCNOAMu_sOxytqk6vtUU37TTGlfXwMhVEF8sOWQ214cIqXkjdUi7z6IZqMVGDyjhuR/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>


  • Mẫu 5
                                      
<style>#searchbox {    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvu_m8TqwSSHbo5yvDIyLuAlEbHVEUStIRsXJfTbF3iGPkbu1QymRR_s7WVNWTqqoYreh1KXM3g49iLUP7RdnvGAVInvyI-lziajAT1ok-JOA-lGpGTWcgJHEAyELHxvjKT9v36RruVKX/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/AVvXsEjgrA-ZMR8A80AILc0XSRPswOnU9Zd7c1KxfYj6Gyb-CaKXLZmSbY9JORoLok4fHGwVD7W4YPblApHecHKc4lrnU5FGHmpM09IEJCStssJRTmLvhxQQNA66s8VnCfmcpeLcKicMhXtuMJub/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/AVvXsEh8Hz0X6Y02IwKNs3ss3M9g47xh4pSee_z-7Op7pqB3eynkc9ln6eerVDJJHamvmHO_dGnP_e-6TdmzGBilR9kDozra1ufdba4trdt322oJqeORbpgIlkBxy_BLGGzh-k1dEFUvRo2AOUxC/s1600/magnifier-hover.png) no-repeat;}
#button-submit:active {    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8Hz0X6Y02IwKNs3ss3M9g47xh4pSee_z-7Op7pqB3eynkc9ln6eerVDJJHamvmHO_dGnP_e-6TdmzGBilR9kDozra1ufdba4trdt322oJqeORbpgIlkBxy_BLGGzh-k1dEFUvRo2AOUxC/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>


  • Mẫu 6
<style>#searchbox {width: 280px;background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeTjAsI6pltKnv7hv57BbBu5X09xzG1bNa3kLZHQu4HgVWWoJZMvrqKxNhh4iVJiH0hpo7Fck_f01s332IcKs910Rze1LuP3CZqFQzLxVz6p9GAFynLxPg6XwBRi2XwA9R3yb6AhiuctED/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/AVvXsEipC52y7RNxxWBDQp-9CLrhvytGKnFTP_UYxXUgW7xV6Ks4OIW8gVRA80oIn1TjqRbJxyNKvotJeWY8yDl-E7Q3I9CvvEv4yJgcgd3wOFtgDcUO7_N3HtfYuhitALZdNtFyXwx3njLaW2Xa/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/AVvXsEhP9jSWve4RUBZOreHttJ5i0sv3ZdGdaO_QDDKaT66_HIqXeR10DDPx1iEvqNZ6itOIEn-AuOBjpBYzbTxZ4OU-UKSt5iCAMpZK0dJoticgSamuxnxSTgDD5d3iJO0EjQtst4-RmgN8BSBN/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>

Vậy là Nhân Huỳnh Blog đã giới thiệu cho các bạn cách tạo khung search dành cho blogger rồi. Mọi thắc mắc bạn có thể comment bên dưới, nếu trong tầm hiểu biết của mình thì mình sẽ hỗ trợ các bạn .

Chúc thành công!






Hướng dẫn tạo khung search cho blogger Reviewed by Unknownon 7:08:00 AM Rating: 5

No comments:

All Rights Reserved © 2016 Thủ thuật Blogspot

GÓP Ý - BÁO LỖI

Name

Email * (bắt buộc)

Message * (bắt buộc)