Advertisement
Guest User

Untitled

a guest
Feb 18th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.  
  3.  
  4. $(function() {
  5.  
  6.     $(".feed-tabs ul").tabs("div.feeds > div", {
  7.                
  8.         effect: 'fade',
  9.        
  10.         onBeforeClick: function(event, i) {
  11.    
  12.             // get the pane to be opened
  13.             var pane = this.getPanes().eq(i);
  14.    
  15.             // only load once. remove the if ( ... ){ } clause if you want the page to be loaded every time
  16.             if (pane.is(":empty")) {
  17.    
  18.                 // load it with a page specified in the tab's href attribute
  19.                 pane.load(this.getTabs().eq(i).attr("href"));
  20.             }
  21.    
  22.         }
  23.     });
  24.  
  25. });
  26. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement