![]() ![]() Calling this function before inserting a button ensures that users see the partner's logo above the Book Search previews. Intended for use by publishers in the Partner Program, this function sets the Co-Branded Search site to be used when inserting any preview links to Book Search. GBS_setCobrandName GBS_setCobrandName(cobrandName) Typically, this is used for advanced customizations. Object optionsObj - A set of key-value pairs passed to the Embedded Viewer API's DefaultViewer constructor. GBS_setViewerOptions GBS_setViewerOptions(optionObj) Currently supported language codes include hy, bg, ca, zh-CN, zh-TW, hr, cs, da, nl, en, fil, fi, fr, de, el, hi, hu, is, id, in, it, ja, ko, lv, lt, no, pl, pt-BR, pt-PT, ro, ru, sr, sk, sl, es, sv, th, tr, uk, and vi. #Greasemonkey google book downloader codeString languageCode - The desired RFC 3066 language code (default is 'en' for English). This includes the language of the "Google Preview" button, the interface language of the embedded preview, and so on. GBS_setLanguage GBS_setLanguage(languageCode)Ĭhanges the language of any buttons or text added after this function is called. For example, if you'd like to insert the "Google Preview" button, you'd put the code to do so in a element at the button's desired position within the page. Having loaded the preview library, you can then call any of the following functions from within tags inside your document's. One way to do this is by adding the following tag to the section of your page: To do this, you should first load the Preview Wizard library. In addition to using the wizard above, you can call some simple JavaScript "helper" functions directly. previewwizard-customurl: Shows a button that goes to a specific URL.previewwizard-linktogbs: Inserts a button that links to the preview on the Book Search site.previewwizard-popup: Adds a button that can be clicked to open a floating preview over the page.previewwizard-embed: Embeds a book viewer on the page.The following examples were generated using the Preview Wizard. ![]() Generate your preview code Examples of generated previews If you're an advanced developer looking for customized integration, consider The Preview Wizard is a simple convenience library we built on top of our Dynamic Links and Embedded Viewer APIs. ![]() You can also customize this code using some simple JavaScript functions. You can embed a book viewer, link to Book Search, or even add a preview "popup" window to your site-all you need to do is generate the code and paste it onto your page. The Preview Wizard is designed to let you quickly, easily, and reliably integrate previews with your site. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |