Caframo

Tab 1
Tab 2
Tab 3

This is the content to display in the first tab.
Welcome to tab 2!
Tab 3 is probably the best of the three tabs.
#tab1, #tab2, #tab3 { float: left; padding: 5px 10px 5px 10px; background: #B00098; color: #FFFFFF; margin: 0px 5px 0px 5px; } #tab1:hover, #tab2:hover, #tab3:hover { background: #E800C9; } #tab1Content, #tab2Content, #tab3Content { width: 500px; height: 100px; padding: 20px; border: 1px solid #B00098; } #tab1Content { display: block; } #tab2Content, #tab3Content { display: none; }} function selectTab(tabIndex) { //Hide All Tabs document.getElementById('tab1Content').style.display="none"; document.getElementById('tab2Content').style.display="none"; document.getElementById('tab3Content').style.display="none"; //Show the Selected Tab document.getElementById('tab' + tabIndex + 'Content').style.display="block"; }