Advertisement
Guest User

Untitled

a guest
Mar 14th, 2010
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.  
  3.   $('ul.tabs li').css('cursor', 'pointer');
  4.  
  5.   $('ul.tabs.tabs1 li').click(function(){
  6.     var thisClass = this.className.slice(0,2);
  7.     $('div.t1').hide();
  8.     $('div.t2').hide();
  9.     $('div.t3').hide();
  10.     $('div.t4').hide();
  11.     $('div.' + thisClass).show('fast');
  12.     $('ul.tabs.tabs1 li').removeClass('tab-current');
  13.     $(this).addClass('tab-current');
  14.     var data = thisClass;
  15.     $.ajax({
  16.       type:"GET",
  17.       url:"handler.php?name="+data,
  18.       data:data,
  19.       success:function(html) {
  20.     $('div.' + thisClass).html(html);
  21.        }
  22.     });
  23.     return false;
  24.   });
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement