Gốc > THỦ THUẬT WEB-BLOG > Thủ thuật blog Violet >
<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="violet.vn/dpsang" 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="violet.vn/dpsang" 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://violet.vn/dpsang/block/advancesearch">Tìm kiếm Tư liệu lưutrữ trên thư viện trực tuyến Violet</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> :
Hướng dẫn: Các bạn copy code trên đây về rồi edit lại một số chỗ theo ý của bạn
Đỗ Văn Cường @ 10:24 19/03/2011
Số lượt xem: 869
Công cụ tìm kiếm (nhiều lựa chọn) cho trang riêng
Trên thư viện Violet có trang bị công cụ tìm kiếm cho các trang riêng của nó. Tuy nhiên, công cụ dò tìm này chỉ cho phép tìm kiếm dữ liệu được lưu trữ trên thư viện mà thôi, thiếu đi chức năng dò tìm bài viết, dò tìm rộng rãi trên các trang khác ngoài Violet.
Hôm nay, bài viết này sẽ giới thiệu đến các bạn một tiện ích bổ sung cho chức năng thiếu sót nêu trên (công cụ tìm kiếm tuỳ chỉnh của google).

Mặc dù công cụ này được lấy từ nguồn ngoài Violet để chèn bổ sung thêm vào nhưng dpsang cũng đã cố gắng giữ lại được chức năng dò tìm trên thư viện Violet, do đó công cụ này chỉ có lợi chứ không gây hại gì cả
Demo: Các bạn có thể dùng thử công cụ dò tìm ngay trên trang này (kéo thanh cuộn lên trên nhé)
Code: Chọn tất cả<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="violet.vn/dpsang" 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="violet.vn/dpsang" 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://violet.vn/dpsang/block/advancesearch">Tìm kiếm Tư liệu lưutrữ trên thư viện trực tuyến Violet</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> :
Hướng dẫn: Các bạn copy code trên đây về rồi edit lại một số chỗ theo ý của bạn
- Trước hết là edit vùng dò tìm: do muốn giới hạn cho khách dò tìm trên các vùng violet.vn/dpsang, violet.vn, nhaccuatui.com, youtube.com, game.vietgiaitri.com, nên Sang đã cho vào các link đó nhưng các bạn có thể sửa các liên kết này lại thậm chí có thể thêm vào vùng khác nữa cũng được, sửa xong nhớ sửa label của các vùng đó cho phù hợp nhé.
- Tiếp theo bạn edit địa chỉ đến công cụ dò tìm trên trang riêng violet của bạn, http://violet.vn/dpsang/block/advancesearch là địa chỉ của dpsang, trên trang riêng của bạn địa chỉ đó sẽ là http://link-của-bạn/block/advancesearch.
- Xong rồi đó, bây giờ bạn có thể copy code mới này vào một box mới trên khối chính
Chúc bạn thành công!
Dương Phước Sang
Đỗ Văn Cường @ 10:24 19/03/2011
Số lượt xem: 869
Số lượt thích:
0 người
 
- Ghép hình nền vào bài viết (19/02/11)
- Thủ thuật chèn ẢNH, FLASH, FLASH CHÈN TEXT, FILM vào ô ý kiến (10/02/11)
- Cách tạo nhạc nền 100% violet và up ảnh vào mục TT bản quyền (08/01/11)
- Tạo biểu tượng động cho hộp chát Cbox ! (08/01/11)
- HƯỚNG DẪN CÁCH ĐƯA ẢNH VÀO BÀI VIẾT (08/01/11)


Các ý kiến mới nhất