You can add the health vault search box to your site very easily.
To add the box -
- Include the following in your head element -
<script src="http://health.live.com/static/partner/Microsoft.HealthVault.js" type="text/javascript"></script>
- Add the following to the div where you want the search box
<script type="text/javascript"> new Microsoft.HealthVault.SearchBox(0,null);</script>
The first element in the SearchBox describes the size of search box (1,2,3) and the second one will be a partner id for ad revenue sharing with the search box partners. If you want such an id for revenue share you will need to contact Microsoft.
- For contextual pop-up use the above script and annotate your text as follows -
Example -Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce <span onclick="myPopup.show(this)" class="msHealthVaultContextualPopup">cancer</span> nibh sed nisi. Quisque id sem. Cbulum facilisis iaculis quam. Nulla euismod porttitor risus. </p> <script type="text/javascript">var myPopup = new Microsoft.HealthVault.ContextualPopup(null);</script>
Gives
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce cancer nibh sed nisi. Quisque id sem. Cbulum facilisis iaculis quam. Nulla euismod porttitor risus.

0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment