资源说明:Web Widget for Searching the Research Inventory
The Great Lakes - St. Lawrence Research Inventory (RI) - http://ri.ijc.org/ RI Widget - Widget to search the Research Inventory's list of projects 1. Using the Research Inventory Widget ======================================== A full, simple example use of the RI widget can be found in snippet.html. The short and sweet of it is: ri.widget(document.getElementyById("ri-widget")); This will wipe out the contents of the DOM element with id "ri-widget" and replace it with a search form. When submitted, this form will pop up a search results box, hover over top of other content. The widget itself will respect the width constraints imposed by its parent (the element with id "ri-widget" in this case). For a more complex example, consider we wish to make the following changes: - Use custom CSS that overrides the colours (a "theme") - Completely hide the widget when printed - Display 8 results, instead of the default 5 - Use a different "close" image (at top right of result box) For this we'll need to pass in some "options" to the ri.widget call. They are called options because they are precisely that, optional. The actual options themselves are given as an object, where the properties correspond to the options we're overriding. In this example, we would call ri.widget using something similar to this:
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。