steps)
1)
---
Make sure jquery is included in the head:
2)
---
Include the following in the head.
OPTIONAL PARAMETERS (you may pass any and all or none of these):
a) DEFAULT_TAB_ID - if by default you want a tab selected other than
the first, set this parameter
b) TAB_COOKIE_NAME - if you want 'sticky' tabs (browser to remember
what tab user clicked last via cookies), set this parameter
3)
---
Include the following in the head(if the $(document).ready block already exists,
then just put the import statement inside the existing one):
4)
---
To customize the tab sizes, placement, and left background image, you may add the
following styles in the head to override and tweak as needed
(including this may not be necessary, depending on your needs):
#mantle .mantle3 {
/* set background image and position for the left image in the
mantle */
background:
url(/amer/images/retirement/tabbed_mantle/retirement_woman.png) 18px 0 no-repeat;
}
#mantle .mantle_content {
/*padding: 5px 10px 0 171px; same as left position of
#mantle_tabs (below) if you want it vertically aligned w/ header text above tabs */
}
#mantle_tabs {
/*left: 171px; same as left content padding (above) if you want
it vertically aligned w/ header text above tabs */
/*height: 48px; if you adjust this, you may need to adjust the
top/bottom padding for #mantle_tabs .mantle_tab a below */
}
</style>
<!-- ======================================= -->
5)
---
In the body, add the following html markup for the tabbed module, giving an ID to
each tab (tab1, tab2, and tab3 in the example below):
</tr></table>
<!-- end mantle tabs -->
</div></div></div></div></div>
<!-- ============== END MANTLE ============== -->
6)
---
Finally, in the body, add the tab contents, giving each content div an ID of the
corresponding tab ID + "Content". In the example below, we've done this by giving
the content divs IDs of "tab1Content, tab2Content, and tab3Content":