2010-10-26 52 views

回答

0

我用下面的代碼vb.net實現這一目標:

google.load('search', '1', { language: 'en' }); 
google.setOnLoadCallback(function() { 
     var customSearchControl = new google.search.CustomSearchControl('[your se code here]'); 
     customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); 
     customSearchControl.draw('cse'); 
     customSearchControl.execute('<%=server.htmlencode(request.querystring("searchterm"))%>'); 
    }, true);