A jQuery plugin that sets a division to show a Google Search Newsbar. If you find this plugin useful please vote for it on the jQuery site.
This page provides a documentation reference for working with the plugin v1.0.2. See a demonstration of the Google Search Newsbar plugin and download the code from there.
For more detail on the Google Search Newsbar functionality, see the Google API documentation.
A separate GSNewsbar instance is created for each targetted division and has its own settings:
$('divs').gsnewsbar({...});
currentResult | cycleMode | cycleTime | horizontal | linkTarget | manyResults | search | title | verticalCompressed
| Signature | Returns | Comments |
|---|---|---|
| $.gsnewsbar.setDefaults(settings) | GSNewsbar object | Update the default instance settings to use with all GSNewsbar instances. |
| $(div).gsnewsbar('change', settings) | jQuery object | Update the settings for the GSNewsbar instance(s) attached to the given div(s). |
| $(div).gsnewsbar('destroy') | jQuery object | Remove the GSNewsbar functionality from the given div(s). |
| $(div).gsnewsbar('search', terms) | jQuery object | Execute a new search for the GSNewsbar.terms (string) the keywords to search for. |
Contact Keith Wood at kbwood{at}iinet.com.au with comments or suggestions.