Các bạn nhìn thấy hộp tìm kiếm tùy chỉnh trên trang của mình chứ, các kết quả tìm kiếm sẽ được hiển thị trực tiếp ngay trên trang của mình, các bạn thử là biết liền hà, các bạn có muốn có một hộp như thế trên trang cá nhân của mình không? Sau đây là code:
- Code:
<style type="text/css"><!--width: 520px;}--></style><form action="" id="cse-search-box"><div class="contSearchTop" style="margin-left: 0px;"><input name="cx" value="002513208520069179887:e6dt5oleghs" type="hidden"><div id="chon" name="chon" class="searchTips01">Tìm trên:<input style="cursor: pointer;" class="searchInput" checked="checked" name="sitesearch" value="goctamtinh.forum-viet.com" id="ss1" type="radio"> Trang này <input style="cursor: pointer;" class="searchInput" name="sitesearch" value="violet.vn" id="ss1" type="radio"> Violet <input style="cursor: pointer;" class="searchInput"name="sitesearch" value="nhaccuatui.com" id="ss1" type="radio">Nhaccuatui <input style="cursor: pointer;" class="searchInput"name="sitesearch" value="youtube.com" id="ss1" type="radio">Youtube <input style="cursor: pointer;" class="searchInput" name="sitesearch" value="game.vietgiaitri.com" id="ss1" type="radio">Game <input style="cursor: pointer;" class="searchInput" name="sitesearch" value="" id="ss1" type="radio"> Internet</div><div valign="middle" style="float: left; display: block; margin-left: 2px;" class="qq"><input onblur="setValue(this)" onfocus="this.value=''" value=""style="border: 1px solid rgb(126, 157, 185); padding: 1px; background: url("no-repeat="" scroll="" left="" center="" size="72" id="q" name="q"type="text"></div><input style="float: left; margin-right: 0px;" name="sa" src=""value="Tìm kiếm" type="image"><div class="searchTips02" name="intro" id="intro" style="padding: 0px 0pt 0pt;">Tìm trong: <input name="as_occt" value="title" id="ss2" type="radio"> Tiêu đề <input name="as_occt"value="body" id="ss3" type="radio"> Thân bài <input value=" "type="hidden"><input name="as_occt" value="any" id="ss0" type="radio"> Toàn bộ bài viết</div><input name="cof" value="FORID:10" type="hidden"> <input name="ie"value="UTF-8" type="hidden"></div><input value="goctamtinh.forum-viet.com" name="siteurl" type="hidden"></form><script type="text/javascript" src="http://www.google.com.vn/cse/brand?form=cse-search-box&lang=vi"></script><div style="clear: both;"></div>Chức năng khác: <a href="http://goctamtinh.forum-viet.com/Forum/block/advancesearch">Tìm kiếm Tư liệu lưu trữ trên Forum</a><div id="cse-search-results" style="text-align: center; vertical-align: top;"></div><script type="text/javascript">var googleSearchIframeName = "cse-search-results";var googleSearchFormName = "cse-search-box";var googleSearchFrameWidth = 500;var googleSearchDomain = "www.google.com";var googleSearchPath = "/cse";</script><script type="text/javascript" src="http://www.google.com.vn/afsonline/show_afs_search.js"></script>