MediaWiki:Rawmsg-google-ajax-search-health-news
From Health++
Line 1: | Line 1: | ||
<!-- ++Begin News Bar Wizard Generated Code++ --> | <!-- ++Begin News Bar Wizard Generated Code++ --> | ||
- | + | <!-- | |
- | + | // Created with a Google AJAX Search Wizard | |
- | + | // http://code.google.com/apis/ajaxsearch/wizards.html | |
- | + | --> | |
- | + | <!-- | |
- | + | // The Following div element will end up holding the actual newsbar. | |
- | + | // You can place this anywhere on your page. | |
- | + | --> | |
- | + | <div id="newsBar-bar"> | |
- | + | <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span> | |
- | + | </div> | |
- | + | <!-- Ajax Search Api and Stylesheet | |
- | + | // Note: If you are already using the AJAX Search API, then do not include it | |
- | + | // or its stylesheet again | |
- | + | --> | |
- | + | <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-nbw" | |
- | + | type="text/javascript"></script> | |
- | + | <style type="text/css"> | |
- | + | @import url("http://www.google.com/uds/css/gsearch.css"); | |
- | + | </style> | |
- | + | <!-- News Bar Code and Stylesheet --> | |
- | + | <script type="text/javascript"> | |
- | + | window._uds_nbw_donotrepair = true; | |
- | + | </script> | |
- | + | <script src="http://www.google.com/uds/solutions/newsbar/gsnewsbar.js?mode=new" | |
- | + | type="text/javascript"></script> | |
- | + | <style type="text/css"> | |
- | + | @import url("http://www.google.com/uds/solutions/newsbar/gsnewsbar.css"); | |
- | + | </style> | |
- | + | <script type="text/javascript"> | |
- | + | function LoadNewsBar() { | |
- | + | var newsBar; | |
- | + | var options = { | |
- | + | largeResultSet : false, | |
- | + | title : "In the news", | |
- | + | horizontal : true, | |
- | + | autoExecuteList : { | |
- | + | executeList : ["Health", "Health care", "Medical", "fitness", "wellness", "dental health"] | |
- | + | } | |
- | + | } | |
- | + | newsBar = new GSnewsBar(document.getElementById("newsBar-bar"), options); | |
- | + | } | |
- | + | // arrange for this function to be called during body.onload | |
- | + | // event processing | |
- | + | GSearch.setOnLoadCallback(LoadNewsBar); | |
- | + | </script> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<!-- ++End News Bar Wizard Generated Code++ --> | <!-- ++End News Bar Wizard Generated Code++ --> |
Revision as of 07:39, 7 October 2010
Loading...
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-nbw" type="text/javascript"></script> <style type="text/css"> @import url("http://www.google.com/uds/css/gsearch.css"); </style> <script type="text/javascript"> window._uds_nbw_donotrepair = true; </script> <script src="http://www.google.com/uds/solutions/newsbar/gsnewsbar.js?mode=new" type="text/javascript"></script> <style type="text/css"> @import url("http://www.google.com/uds/solutions/newsbar/gsnewsbar.css"); </style> <script type="text/javascript"> function LoadNewsBar() { var newsBar; var options = { largeResultSet : false, title : "In the news", horizontal : true, autoExecuteList : { executeList : ["Health", "Health care", "Medical", "fitness", "wellness", "dental health"] } } newsBar = new GSnewsBar(document.getElementById("newsBar-bar"), options); } // arrange for this function to be called during body.onload // event processing GSearch.setOnLoadCallback(LoadNewsBar); </script>