Model Site Optional secondary text for expansion
on name or identity only

XML Reader Accordion for Newswire

How to install

In the <head></head> section, after the comment "<!-- PUT SUPPLEMENTAL STYLES AND SCRIPTS HERE -->" place this code:

<!-- BEGIN XML READER CODE -->
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.5.2/build/yahoo-dom-event/yahoo-dom-event.js&amp;2.5.2/build/animation/animation-min.js"></script>
<script type="text/javascript" src="/Templates/reader.js"></script>
<link rel="stylesheet" type="text/css" href="/Templates/reader.css" />
<script type="text/javascript">
/* <![CDATA[ */
SM.reader.loadUserParams = function() {
numberOfItems = 10; // number of items to display
showAllItems = false; // true shows all; false = accordion
showTitlesOnly = false; // false for accordion; true for titles only
showFirstItem = true; // if true, show first item
clickstyle = true; // false activates mouseover to open
category = "hom"; // newswire category to display
expandedHeight = 110; // height of items when expanded
collapsedHeight = 28; // height of items when collapsed
}
SM.addToInit(SM.reader.init);
/* ]]> */
</script>
<!-- END XML READER CODE -->

* and in the HTML:

<div class="reader" id="reader"></div>

Stanford Medicine Resources:

Footer Links: