bubble的备忘录

本blog主要用于常用资料的备忘、备份、备搜索

阅读笔记 Google Example Code:Custom Search Engines

地址:http://www.google.com/uds/samples/cse/index.html
This sample builds on the sample above by making heavy use of a product review custom search engine. Note the various calls to setSiteRestriction() all being made using a custom search engine id. The sample includes some other concepts that are not related to site restriction. These include the use of the GSearchForm object that is used to drive multiple search controls and the use of custom CSS directives that restyle portions of the search control and results.

结论:
通过cse类,同时设立了两个搜索结果框,以及最上边一个搜索输入框,和最下边一个视频搜索结果框
搜索输入框调用了searchForm控件
左右搜索结果框调用了searchControl控件,并预设了结果集大小,其中,右边同时设立了六个搜索引擎,采用标签的形式对结果分类
视频搜索结果框使用了GSvideoBar控件,可以同时实现视频搜索和选择结果播放的功能,需要在HTML页面中预设两个div用于分别显示搜索结果框和视频播放框

存疑:无

0 评论: