Chèn thanh seach của google vào bo-blog phải làm sao vậy anh em. Ai bít chỉ mình với
Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần Hỏi/Ðáp để biết cách dùng diễn đàn. Để có thể tham gia thảo luận bạn phải đăng ký làm thành viên, click vào đây để đăng ký.
Chèn thanh seach của google vào bo-blog phải làm sao vậy anh em. Ai bít chỉ mình với
Muốn công cụ tìm kiếm google chỉ tìm trên website của mình thì vào trang này:
http://www.google.com.vn/coop/cse/
Đăng ký
Sau đó lấy mã nhúng chèn vào code là ok
ví dụ:PHP Code:
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'vi'});
google.setOnLoadCallback(function(){
var customSearchControl = new google.search.CustomSearchControl('000698283138017428867:dlyhqdlnwnu');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks