我想在我的网站中集成 Google 自定义搜索引擎。我有两层:
<div id="left-column"></div>
<div id="right-column"></div>
我想将搜索框放在left-column
所有其他菜单链接也放置的位置,而我想将结果放在right-column
. 但是,在 中right-column
,不使用搜索时会显示其他一些内容材料。
输入搜索查询时,我希望结果出现在 中right-column
,删除显示的内容材料。
我试过了
customSearchControl.draw('right-column', options);
绘制搜索框时;但它删除了内容材料。
我怎样才能做我想做的事?