Tuesday, February 21, 2012

Tabs in Jquery

it is very nice and simple Tabs in Jquery




 or Copy this whole HTML below:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Page</title>
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" href="css/tab-style.css"/>
<script type="text/javascript" src="js/tab-script.js"></script>
</head>

<body>
 <ul class="tabs">
                <li><a href="#tab1">Tab1 </a></li>
               <li><a href="#tab2">Tab2</a></li>
              </ul>
 <div class="tab_container">
   <div id="tab1" class="tab_content">
   Content for Tab1 here
   </div>
   <div id="tab2" class="tab_content">
   Content for Tab2 here
   </div>
</div>
</body>
</html>


Enjoy !!! :)

No comments:

Post a Comment