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

47 lines
1.8 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; Basic &#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 { margin: 0; padding: 0; }
#tab-container ul li { display: inline-block; background: #ccc; border: solid 1px; border-bottom: none; }
#tab-container ul li a { display: block; padding: 5px; outline: none; }
#tab-container ul li a:hover { text-decoration: underline; }
#tab-container ul li.active { background: #fff; padding-top: 6px; position: relative; top: 1px; }
#tab-container ul li a.active { font-weight: bold; }
#tab-container .panel-container { border: solid 1px; padding: 0 10px; }
</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>
<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>