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/AVvXsEjhyphenhyphen6p3h_eYXcsyCJpsXK5QwVZaS3Gr7iyWZFrSHIri2wPNHc91Jo1CQEOtfKg28EhAr0i7comOsSQQdqWhldRP4R45nPZF-TKZbH0OLsE75H0AafPGmi8iDPryRU_U5iw0cnJad6vKF30_/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/AVvXsEhEJG6inlAZ7fwgEK1dwG3lBp6UDw16uh86qIph4LUDvomFw-IO3BwxpfgcBjD4RGyRNt5Ex4ZHw0pMmGC8EavGg2Mos23QadRwiAaECncZ3YP0Wr7kKZqSyEVK_UQ3B3DNdx_iXlIu_ZPw/s1600/tbguide-social-buttons-facebook.jpg" title="Facebook" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjer7K0FkqGYNGfVOcxCn_rtr9c_YpeRnS9_lfR0BrotpQy61qeuhi5L7LTeYOzbRSL8hF5T7FWQwz8jBULfFIwXRmeTUP6NVt0KHaQmGybnn-zc5x66PxdRJB-JBOZ0BsBsXGyvry_nrFT/s1600/tbguide-social-buttons-stumble.jpg" title="stumble" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidXmZuRWe48Dfb1GFez-hwrtbkzQ2bOxQpm-M9EwjihNXjhzqxJx5w4sDWAVD1u1jxIvYxYdtNAQf-nGDCyZ6geDpCsO7onxaJspSeIZrCOkp-_LPDD1iZlm2CflqB2YcgxicDy8m8jgi4/s1600/tbguide-social-buttons.jpg" title="twitter" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW9WUMWHYYPCXFaSHADlYBTwrO7q4cNlh6EETyNEJxcgHvXM3lR4tRHYUxM5pJHqmYZ47cOSeKW4eY4nNs4AsJUH0ONx6NCrh_UU5LJPqIHPMhOcfdy2rtRNXO_aBfDudHVkClfGubu9Vx/s1600/tbguidesocial-buttons-google.jpg" title="Google Plus" /></a></li>
<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7vemG_ewFItGt5l8Fn9WHMrvQpFMDMsW2pVO9B_1kAtSrzZZZMTZ2ARcPzC7E_UTBdnKIbzLh-Mv03UhsSp-OYEBGa9s1gmu6uhIkiuVhXDcJiqwwW7ixjL_Bl-uONxMOwFfz9mMWVkJe/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="https://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