MediaWiki:Rawmsg-google-ajax-search-health-news
From Health++
(Difference between revisions)
Line 1: | Line 1: | ||
- | <div id="newsBar-bar"> | + | <!-- ++Begin News Bar Wizard Generated Code++ --> |
- | <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span> | + | <!-- |
- | </div> | + | // Created with a Google AJAX Search Wizard |
- | <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-nbw" type="text/javascript"></script> | + | // http://code.google.com/apis/ajaxsearch/wizards.html |
- | <style type="text/css"> | + | --> |
+ | |||
+ | <!-- | ||
+ | // 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"); | @import url("http://www.google.com/uds/css/gsearch.css"); | ||
- | </style> | + | </style> |
- | <script type="text/javascript"> | + | |
+ | <!-- News Bar Code and Stylesheet --> | ||
+ | <script type="text/javascript"> | ||
window._uds_nbw_donotrepair = true; | window._uds_nbw_donotrepair = true; | ||
</script> | </script> | ||
Line 32: | Line 50: | ||
// event processing | // event processing | ||
GSearch.setOnLoadCallback(LoadNewsBar); | GSearch.setOnLoadCallback(LoadNewsBar); | ||
- | </script> | + | </script> |
+ | <!-- ++End News Bar Wizard Generated Code++ --> |
Revision as of 04:24, 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>