بسم الله الرحمن الرحيم | السلام عليكم ورحمة الله وبركاتة
لا نختلف أن إضافة مربع البحث لمدونتك مهم جداً لانه يسهل كثيراً على الزائر فى البحث عن شئ ما لذلك مدونة هادى ستور أضافت هذة التدوينة وغير ذلك إنها خصصت أكثر من شكل مختلف لكى يناسب ويتناسب مع الجميع 6 اشكال مختلفة إختر ما يناسبك والآن دعنا نعرض عليك الأشكال وطريقة التركيب.
  1. كالعادة تقوم بالدخول إلى الصفحة الرئيسية لبلوجر (لوحة التحكم)
  2. إختر التخطيط ثم إضافة اداة جافاسكريبت وتضع بها الكود الخاص بالشكل الذى تريدة
<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/AVvXsEiiwNAR6bPdjNqnNJ7yGoFWBMfZOVpG6C3Si0VzUTan0EDoD5bydhpKGBHwhpDufV2-vkhJZ-X0ue-Hj6FSGAStyag5O18VzX5oJitiwhJa3sMs77VsVE5u__-hi28IDSHWaIAOvjgTJutg/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>
<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/AVvXsEiiwNAR6bPdjNqnNJ7yGoFWBMfZOVpG6C3Si0VzUTan0EDoD5bydhpKGBHwhpDufV2-vkhJZ-X0ue-Hj6FSGAStyag5O18VzX5oJitiwhJa3sMs77VsVE5u__-hi28IDSHWaIAOvjgTJutg/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/AVvXsEjFo7rEJI5gQU1gTUxh6qxSbwkjO8Vug4XqxdEKPD4ifz_sUQ8LxB_pbuZYCofWlISf64F8PL3KwLKOCZmHMJv-a6_2dtI46mQi585gksjbkVr7MgX-du_xtuJ_ABiqiywWGJVH2magN7qZ/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>
<style>
#searchbox {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7BTPOCds8zKK3IMPQ-9VC_5FLpjQ05haQfnNkSo6GHGqjDc9bdK7btbUVh_3OB5Zmv7j25aJA33oMBYWxSgtRyLn4v9YN5iN8sej6n_hekhPy_XfJbMHrKnY8jexHnKqDfZqIaADyj8yY/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/AVvXsEiRyudlxzOTnE7hfSraGrvNl9VJwwR9YsjElv_BKMqP53gtBFSNyyrfs31lH9d5rRlLVer3Mr8HF9iOMiaFZOCwwWB81ivOuRtu6nAQP1AnOL8MlnuVEOhybn67JUb5qBe55KUHLOUHKLdA/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/AVvXsEjj75ZfsyAZ2CCn6eVtwe9vAW6-vQIqx97-KwRI6lMWzgHaGqmA27MhYzi1IgGNPa-I4S-GRWt1P8kGwGoiJFH7rG5hNgWQVZqEupfDNAIiaawHl9Z3QOYPL0bsSxg3bKb-3XDQ5kNbjDfS/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj75ZfsyAZ2CCn6eVtwe9vAW6-vQIqx97-KwRI6lMWzgHaGqmA27MhYzi1IgGNPa-I4S-GRWt1P8kGwGoiJFH7rG5hNgWQVZqEupfDNAIiaawHl9Z3QOYPL0bsSxg3bKb-3XDQ5kNbjDfS/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>
<style>
#searchbox {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi09xKrDq_FTsfw0Uc0j3h8ve2UowAG19AWGELAikRpkqgY-fdny6rlZZoj1a9VBz91vkf80_hbUftFFmFPvHIp45uWn34ICLjyecw7GLljmzk02t-kMv8_yLfirdg1fUwBfiGc2omOjXB9/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/AVvXsEhvEbwBGuIxomqrXnyfkqM585IkLc8KF7WZemyKMbpIQ-94bxDiNZIgOIUcXD7njj9hLOW1p08qnQ-fHnte0WzWk0EK11u7kNbGKU8qBt8qA99umxBr_KxJDtM4vsLy5XSwSoVefNjovoDP/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/AVvXsEgt12a16M3FljDRvFF0ptnjqy8A6oX9H8EWmMe6uVAhMkr1p1KV9yQyjC_-zH40lOfq2_5xZCrn8h7ceWBQIAYo4mfhePGNrAqhu4SaZfMy3SJAGeTIURDoozbxkI06tXmMeTu3u4WdvJZF/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>
<style>
#searchbox {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidSoRNfpqOCDv91ScB9f9VJXCaVZLJ46J1rhthKKFCg418kkOnaxE_f81AUVoMLlZqGpfjj_XXDO7se3HmCQA5-IdTyQPei7ZeK85mWl4HnEhFPyORwmeRFznFogLaJPGcViUeQWzi-Gai/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/AVvXsEjzrlwaRimM-zv2jTWDUHuvTAaLQrpckycXZZZMRoQnlAkkTQdJ-awZjfcgV-sOHAt30VCFqT8G8EGLQl3QhIsb3L6QQp7zpKiq_pcKrje0V6g-6mEFgtA4TFNbSinWnYBT0oHYUW2VgMoQ/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/AVvXsEi1cky9we7CRR_h9VtKivsiQ8v8vbG3hbfUf8_vjPKm6DQMwSllUsalF5ipYpJB3WVfUATFFVqH3_zTnLwuL-oXehF37fcoF-lzLGj-4fKkaKZWi9BN9KoRdaCAdR-fYDVqqe2XwLlAKFcR/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1cky9we7CRR_h9VtKivsiQ8v8vbG3hbfUf8_vjPKm6DQMwSllUsalF5ipYpJB3WVfUATFFVqH3_zTnLwuL-oXehF37fcoF-lzLGj-4fKkaKZWi9BN9KoRdaCAdR-fYDVqqe2XwLlAKFcR/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>
<style>
#searchbox {
width: 280px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHGQxQOchf7kng2lwQA7eDVBVjLKcYTsmk8fQhWbp5L_pQrbyeId-G77rVSf6Amg9A400lzFBSdtZ1Lo8hESDnPLXHpvORscESUUjR1tLoac9ZrVWDx-uYTjTd5DLKI6dv-2dEB_QTsGzg/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/AVvXsEgppBbiP3eGKG0sI7NFaBoTGJf2GPim2vBMCLMY0wKOZ5m21EvbI-ZbI_l54n1FBHfApFEKQyjnJ4-raewDrCtEU3Qe7xFK10_igVa-47f7-BUY5FyKWrgKUoT-cnCyWOCwFdqjsyrx6Q_o/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/AVvXsEglaSKvx_Wt4PKHfIc1rkhmrJ_eh21hyroHA0OeCcg_wHe1YHi01DMJXRU9eDnHeoQAKBGQ_8j1YHCke0RSKHbkSTQSYlaozKUi1wfQAykgZK3RRuWdyTBFFW591pX1y6eWu_DSt14WZbWz/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>
والآن إنتهينا أى إستفسار جاهزون للرد بإذن الله