Advertisement
rAthus

Mettre à jour les scrollbars Easy Scroll automatiquement

Oct 3rd, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /** Mettre à jour les scrollbars Easy Scroll automatiquement toutes les secondes en gardant la largeur du bloc **/
  2. jQuery(document).ready(function($)
  3. {
  4.     setInterval(function()
  5.     {
  6.         $('.content').each(function()
  7.         {
  8.             var w = $(this).width(); // stock the actual width
  9.             $(this).trigger('resize').css({'width':w+'px'}); // update the scrollbar and then forces the original width we stocked
  10.         });
  11.     },1000);
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement