Advertisement
helgatheviki

Jquery UI tabs + Smoothdivscroll jquery

Jul 22nd, 2011
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.38 KB | None | 0 0
  1. jQuery(window).load(function(){
  2.  
  3. var $ = jQuery.noConflict();
  4.  
  5.  
  6. //launch smoothdivscroll
  7. if($(".makeMeScrollable").size()>0){
  8.     $(".makeMeScrollable").each(function(){
  9.         $(this).smoothDivScroll();
  10.     });
  11. }
  12.  
  13.  
  14. //set up tabs
  15. $('#tabs').tabs({
  16.   show: function(event, ui) {
  17.     $(ui.panel).smoothDivScroll("recalculateScrollableArea");
  18.     }
  19. });
  20.  
  21.  
  22.  
  23. }); //end .load functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement