开发者

How to display the Google Custom Search results in an existing div?

开发者 https://www.devze.com 2023-03-24 13:51 出处:网络
I want to integrate the Google Custom Search Engine in my website. I have two layers: <div id=\"left-column\"></div>

I want to integrate the Google Custom Search Engine in my website. I have two layers:

<div id="left-column"></div>
<div id="right-column"></div>

I want to place the search box in the left-column where all other menu links are also placed, while I want to place the results in the right-column. However, In the right-column, some other contents 开发者_Python百科materials are displayed when search is not used.

When a search query is input, I want that the results appear in the right-column, removing the displayed contents materials.

I tried

customSearchControl.draw('right-column', options);

when the search box is drawn; but it erased the contents materials.

How may I do what I want?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号