MedlinePlus makes trusted, reliable health information easily accessible in a
variety of formats, including widgets and buttons. The instructions below
describe how to embed the widgets and buttons on your own Web site.
For more information about how to link to MedlinePlus, please see our
linking to MedlinePlus page.
Widgets are small applications that allow you
to access MedlinePlus content directly from your own Web sites. You can
embed the following widgets in blogs, personalized homepages, and other Web
sites. Once you embed the widget on your site, MedlinePlus takes care of the
technical maintenance and updates the content automatically.
The search cloud widget displays the most frequently searched terms on MedlinePlus. This widget is usually updated each weekday, and it is a smaller version of the full-sized MedlinePlus search cloud.
Copy this code for the search cloud widget:
<object id="mp_sc_widget" type="application/x-shockwave-flash" data="http://www.nlm.nih.gov/medlineplus/searchwidgetv2.swf" width="261" height="332" title="This is a Flash version of the MedlinePlus search cloud widget. It shows the top searches of the day.">
<param name="movie" value="http://www.nlm.nih.gov/medlineplus/searchwidgetv2.swf" />
<param name="quality" value="high"/>
<param name="bgcolor" value="#ffffff"/>
<param name="menu" value="false" />
<param name="allowScriptAccess" value="always" />
<param name="allownetworking" value="all"/>
<param name="align" value="middle" />
<param name="wmode" value="window" />
<param name="flashvars" value="lang=us" />
<param name="swfversion" value="9" />
<embed src='http://www.nlm.nih.gov/medlineplus/searchwidgetv2.swf' height='332' width='261' id='mp_sc_widget' pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
NOTE: As of September 2012, the search cloud widget is Section 508 compliant. We will support older versions of this widget for a limited time. Please make sure your site uses the latest code for this widget.
We welcome you to place the MedlinePlus search box on your Web site as long as you clearly identify the box as belonging to MedlinePlus, display the search results in their own window (not in a frame), use the exact search code provided below, and link the word MedlinePlus to the MedlinePlus homepage (http://www.nlm.nih.gov/medlineplus/).
To put the MedlinePlus search box on your own page and open the results in the same window, copy this code:
<form method="get" action="http://www.nlm.nih.gov/search/medlineplus" title="MedlinePlus Search input" target="_self">
<label for="medlineplus">Search <a href="http://medlineplus.gov/">MedlinePlus</a>: </label>
<input type="text" name="query" size="20" maxlength="250" id="medlineplus"/>
<input type="image" src="http://www.nlm.nih.gov/medlineplus/images/search.gif" align="absmiddle" width="57" height="24" border="0" title="Search" alt="Search"/>
</form>
To put the MedlinePlus search box on your own page and open the results in a new window, copy this code:
<form method="get" action="http://www.nlm.nih.gov/search/medlineplus" title="MedlinePlus Search input" target="resultwindow">
<label for="medlineplus_new_window">Search <a href="http://medlineplus.gov/">MedlinePlus</a>: </label>
<input type="text" name="query" size="20" maxlength="250" id="medlineplus_new_window"/>
<input type="image" src="http://www.nlm.nih.gov/medlineplus/images/search.gif" align="absmiddle" width="57" height="24" border="0" title="Search" alt="Search"/>
</form>
You can use the following buttons to link to the MedlinePlus on your own Web site. The corresponding code for each button appears directly beneath the image. Paste the desired HTML code directly into your page.
- <a href="http://www.nlm.nih.gov/medlineplus/"><img src="http://www.nlm.nih.gov/medlineplus/images/mplussm.gif" alt="MedlinePlus" width="120" height="25" /></a>
- <a href="http://www.nlm.nih.gov/medlineplus/"><img src="http://www.nlm.nih.gov/medlineplus/images/mpluslinksm.gif" alt="MedlinePlus Trusted Health Information for You" width="179" height="35" /></a>
- <a href="http://www.nlm.nih.gov/medlineplus/"><img src="http://www.nlm.nih.gov/medlineplus/images/mpluslinkmed.gif" alt="MedlinePlus Trusted Health Information for You: A service of the
U.S. National Library of Medicine,
NIH National Institutes of Health" width="200" height="110" /></a>