Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--<script type="text/javascript">
- $(document).ready(function() {
- //Get all the LI from the #tabMenu UL
- $('#tab-menu > li').click(function(){
- //remove the selected class from all LI
- $('#tab-menu > li').removeClass('selected');
- //Reassign the LI
- $(this).addClass('selected');
- //Hide all the DIV in .tab-content
- $('.tab-content div.tab').slideUp('slow');
- //Look for the right DIV in boxBody according to the Navigation UL index, therefore, the arrangement is very important.
- $('.tab-content div.tab:eq(' + $('#tab-menu > li').index(this) + ')').slideDown('slow');
- }).mouseover(function() {
- //Add and remove class, Personally I dont think this is the right way to do it, anyone please suggest
- $(this).addClass('mouseover');
- $(this).removeClass('mouseout');
- }).mouseout(function() {
- //Add and remove class
- $(this).addClass('mouseout');
- $(this).removeClass('mouseover');
- });
- });
- $(function() {
- var offset = $("#tab-menu").offset();
- var topPadding = 15;
- $(window).scroll(function() {
- if ($(window).scrollTop() > offset.top) {
- $("#tab-menu").stop().animate({
- marginTop: $(window).scrollTop() - offset.top + topPadding
- });
- } else {
- $("#tab-menu").stop().animate({
- marginTop: 0
- });
- };
- });
- });
- </script> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement