Files
jQuery-EasyTabs-mirror/examples/disconnected.html

50 lines
2.0 KiB
HTML

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>JQuery EasyTabs Demo &#8211; Disconnected Content &#45; Alfa Jango Blog</title>
<script src="../javascripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="../javascripts/jquery.hashchange.min.js" type="text/javascript"></script>
<script src="../javascripts/jquery.easytabs.min.js" type="text/javascript"></script>
<style>
#tab-container ul { height: 52px; width: 100%; list-style: none; margin: 0; padding: 0; background: #ccc; }
#tab-container ul li { float: left; width: 33.3%; margin: 0; padding: 0; text-align: center; }
#tab-container ul li a { display: block; padding: 15px 0; line-height: 20px; outline: none; }
#tab-container ul li a:hover { text-decoration: underline; }
#tab-container ul li.active { background: #fff; position: relative; left: 1px; }
#tab-container ul li a.active { font-weight: bold; text-decoration: none; border: solid 1px; }
#tab-container .panel-container { padding: 10px; border: solid 1px; }
</style>
<script type="text/javascript">
$(document).ready(function(){ $('#tab-container').easytabs(); });
</script>
</head>
<body>
<div id="tab-container">
<ul>
<li><a href="#tab-1-div">Tab 1</a></li>
<li><a href="#that-other-tab">The Second Tab</a></li>
<li><a href="#lastly">Tab C</a></li>
</ul>
<br style="clear:both;" />
<h3>Random Info</h3>
<p>This information is not contained in the tabbed content and situated between the tabs and content divs</p>
<div class="panel-container">
<div id="tab-1-div">
<h2>Heading 1</h2>
<p>This is the content of the first tab.</p>
</div>
<div id="that-other-tab">
<h2>Heading 2</h2>
<p>Stuff from the second tab.</p>
</div>
<div id="lastly">
<h2>Heading 3</h2>
<p>More stuff from the last tab.</p>
</div>
</div>
</div>
</body>
</html>