Làm thế nào tạo hộp tìm kiếm cho Blogspot?
- Đầu tiên lúc nào cũng là truy cập vào trang quản trị Blogger đã.- Tiếp tục vào phần Bố cục (Layout), chọn vị trí bạn muốn thêm hộp tìm kiếm, click vào Thêm tiện ích (Add a gadget):
- Chọn HTML/JavaScript, và thêm đoạn code này vào:
Bạn thay các dấu # thành các đường link đến các mạng xã hội của bạn nhé.<style>
#tbg-social{ width:350px;}ul.tbg-social{margin:0;padding:0;list-style:none;-webkit-perspective: 10000px; -moz-perspective: 10000px;-o-perspective: 10000px;perspective: 10000px;}
ul.tbg-social li{display: inline-block;width: 55px; height: 50px;margin-right: -px; background: white;font: bold 36px Arial;
text-transform: uppercase;text-align: center;cursor: pointer;}
ul.tbg-social li a{display:block;width: 100%;height: 100%;color: black;text-decoration: none;outline: none;-webkit-transition:all 300ms ease-out 0.1s; -moz-transition:all 300ms ease-out 0.1s;-o-transition:all 300ms ease-out 0.1s;transition:all 300ms ease-out 0.1s;}
ul.tbg-social li a span{-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;padding-top: 5px; display:block;width: 100%;height: 100%;-webkit-transition:all 300ms ease-out 0.1s;-moz-transition:all 300ms ease-out 0.1s;-o-transition:all 300ms ease-out 0.1s;transition:all 300ms ease-out 0.1s;}
ul.tbg-social li a img{border-width: 0;}
ul.tbg-social li:hover a{-moz-transform: rotateY(180deg); -webkit-transform: rotateY(180deg);transform: rotateY(180deg);background: #cef1ff; -webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;-webkit-box-shadow:0 0 5px #eee inset;-moz-box-shadow:0 0 5px #eee inset;box-shadow:0 0 5px #eee inset;
}ul.tbg-social li:hover a span{-moz-transform: rotateY(90deg); -webkit-transform: rotateY(90deg);transform: rotateY(90deg);}
#tbguide-searchbox { border-radius: 5px; background: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRNAPeFfD2hpUr4W7KdaBP2m8931DyHRB7p770QY2t2Wk4Uyum9KHMmJni1GxV68Lf_zOC26PZzJ7_Gw82kqG92RSGM1aKagE0wSUCLa36QVBrooEgh2FkrY0DZZ5F0vqxmP9dKbF0lovB/s1600/search_box_psd_12.jpg) no-repeat scroll center center transparent; width: 290px; height: 50px; disaply: block;}
form#tbguide-searchform { display: block; padding: 7px 16px; margin: 0;}
form#tbguide-searchform #s { padding-left: 24px !important; padding: 7.5px; margin: 0; width: 198px; font-size: 16px; font-family: georgia; font-style: italic; color: #666666; vertical-align: top; border: none; background: transparent;}form#tbguide-searchform#sbutton { margin: 0; padding: 0; height: 40px; width: 74px; vertical-align: top; border: none; background: transparent;}</style>
<div id="tbg-social"><center><a style="font-size:25px;" >Find Us Here </a>
</center><br />
<ul class="tbg-social"><li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8XeKfXWPqaEW9A0CdvmyuFNAYD7h-y0qfzSSsgOCBVnw2Ido3MSVx9Bp0lMa10sAvYz1sKDzR1YdSjKS0I3Sie5E1RFmtgxNFNgsJ_YZ3b8tAxvMYfR_AQSuWdscy5mapl8jmvc4txXn0/s1600/tbguide-social-buttons-facebook.jpg" title="Facebook" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhglFXi4ggJ12QguAqTlQpko1pgGlItfajdWNfYxhavWNrDZ_LYkXVNbTv_CSVKr1Mz5Nx8Fs4SzA3FFenQ_0ZczGqyBI7pFov1QDZrJqbFkiqxQkGU_noInBBBFpK3zOpicj31j6_-M_3L/s1600/tbguide-social-buttons-stumble.jpg" title="stumble" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaTDPXV1qJ6pSs9QDs3melXWyTvWCFMs5iWgW2qe6nv-QXo-mlsKW6khpe0KFsViqe74edL3yYAhTHy6G-rMpQDEUU2QAFwGAyC84UfkSQVW3cpVOZf9mTYAXmbBMLkXVtXhBoBHXMgJRW/s1600/tbguide-social-buttons.jpg" title="twitter" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxxOoKgiltlJMWqJbC78T2ohyphenhyphenzvzX6gtRZazaGEgsLznd7pz0et_RvQ5YkJyje3wEaA_qp-CMyWpozKx2ggc7IYeyPL59sh6vY4d35ULle1_iMTX6xmi86vkJ_vxad-_Gn42zYX9Ibiq55/s1600/tbguidesocial-buttons-google.jpg" title="Google Plus" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5bJsS-UlPb6s4oVOW_TP3KFWXoVd3k0kRlG8CgiGbRXSf4XHABF8n_ii4L8RD8EiTJd5jGSvE5zuFMNfD5rnTgbDvCrKrG1lc_AmTmCpHfbyzk1BRYuo2Lho5Uw17onGRX1FygyasnqWl/s1600/tbguidesocial-buttons-rss.jpg" title="Add RSS Feed" /></a></li>
</ul><div id="tbguide-searchbox"><form action="/search" id="tbguide-searchform" method="get">
<input id="s" name="q" onblur="if (this.value == "") {this.value = ""Search..;}" onfocus="if (this.value == "Search...") {this.value = ""}" type="text" value="" />
<input id="sbutton" src="http://img1.blogblog.com/img/blank.gif" type="image" /> </form></div></div>
- Cuối cùng là lưu lại! Và tận hưởng thành quả, bạn đã có một hộp tìm kiếm đơn giản cho Blogspot rồi đấy!
Post a Comment