When you embed Y!Q into your site, your users get to search for related information about the content of your pages while staying actively engaged on your site. And because Y!Q overlays the search results directly onto your web page, site visitors never have to leave your site to view their related search results.
<form> element to your HTML or template. The following steps walk you through the process.
By putting Y!Q on your website you agree to the Terms of Service of Y!Q.
Include the Y!Q library file in the header (between
</head>) of the HTML page.
Always associate Y!Q with context. This context may be a small paragraph, a sentence, word, etc. It is up to you to choose the context. We recommend you experiment a bit to see what works best on your site. For example, you may find that using the first paragraph of a story provides relevant results. Or maybe just the document title or headline is sufficient.
If you'd like the context to be highlighted when your users click on the Y!Q icon or text, you should enclose it with an HTML
<div> with the class name yqcontext
If you're using the
<div> for highlighting, include the form within that
<div> block. Otherwise, place the form as close to the context as possible without compromising your site layout. That will help increase the chance of users being able to determine exactly what context you're using to generate the related search results.
The Y!Q form has two required elements:
><div>>of class "yqact" to allow you to override the default style if it does not blend in with your site's style.
Note: the Y!Q form needs to be placed 200px below the top of the page in order to be completely visible. Therefore, it should be placed beneath its context, and not above it or at the top of the page.
If you choose to customize your embedded results, you can add optional hidden form elements to query only specific sites or determine how many search results should appear within the embedded search results. Do this by adding hidden form elements to the Y!Q form.
By using Y!Q you expressly agree to the Yahoo! Terms of Service.