PDA

View Full Version : add tìm kiếm của Google vào VBB



nmhung
09-03-2011, 09:18 AM
Cho hỏi mình muốn thay cái search của VBB bằng cái search của google vào thì làm thế nào?
đây là đoạn code tìm kiếm của google


<!-- Google CSE Search Box Begins -->
<form action="http://linkforum" id="searchbox_014887937272927046256:robem3nvli4">
<input type="hidden" name="cx" value="014887937272927046256:robem3nvli4" />
<input type="hidden" name="cof" value="FORID:11" />
<input type="text" name="q" size="25" />
<input type="submit" name="sa" value="Tìm kiếm" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014887937272927046256:robem3n vli4&lang=vi"></script>

<div id="results_014887937272927046256:robem3nvli4" style="display:none">
<div class="cse-closeResults">
<a>&times; close</a>
</div>
<div class="cse-resultsContainer"></div>
</div>
<style type="text/css">
@import url(http://www.google.com/cse/api/overlay.css);
</style>
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAApJByZcTBgN5a8R-ymstGLRRWMmD2dRUKF0fSEgJePUW2ILKTmBQqGsdBIb_fK9RV0 Ykk1HrfLz9ORg&hl=vi" type="text/javascript"></script>
<script src="http://www.google.com/cse/api/overlay.js"></script>
<script type="text/javascript">
function OnLoad() {
new CSEOverlay("014887937272927046256:robem3nvli4",
document.getElementById("searchbox_014887937272927046256:robem3nvli4"),
document.getElementById("results_014887937272927046256:robem3nvli4"));
}
GSearch.setOnLoadCallback(OnLoad);
</script>
<!-- Google CSE Code ends -->


Mình k biết chèn vào chỗ nào? chỉnh ntn?
mấy cái bôi mầu là mấy cái key thôi(ko quan tâm)
Mình chỉ cần cách thay cái search của VBB = search của goole ở chỗ nào thôi

p/s:cái tìm kiếm của http://www.danketoan.com/forum/forum.php rất hay.
Nếu ai có thì cho mình xin để tham khảo

Tiểu Bá Vương 1404
09-03-2011, 03:32 PM
Phần này có trong ebook của anh Thanh đó anh !

nmhung
11-03-2011, 11:01 AM
Tiểu bá vương xin cái link down

Tiểu Bá Vương 1404
11-03-2011, 11:16 AM
Đây nà anh : http://itvnn.net/showthread.php?16177

Xem phần V ấy.