2006-06-17

Google AJAX search

http://code.google.com/apis/ajaxsearch/documentation/



// create a search control
var searchControl = new GSearchControl(null);

// add in a full set of searchers
searchControl.addSearcher(new GlocalSearch());
searchControl.addSearcher(new GwebSearch());
searchControl.addSearcher(new GvideoSearch());
searchControl.addSearcher(new GblogSearch());

// tell the searcher to draw itself and tell it where to attach
// Note that an element must exist within the HTML document with id "search_control"
searchControl.draw(document.getElementById("search_control"));


==
ABQIAAAAN4IDiEcikVT_SKNn07-pORT3KqswCzTHPLJHEHWghnZeqgSB8RSxaIPx_Cc6NIFpGfiIiusddGxdww


No comments:

Post a Comment