DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Bruce has posted 2 posts at DZone. View Full User Profile

Jquery Image Size Slider

09.30.2008
| 7912 views |
  • submit to reddit
        
      var sliderChange = function(e, ui){
        $('#ilgallery li > img').each(function(index, item){
          var _new = $('#ilslider').slider("value");

          $(this).css("width", _new+'px')
            .parent().css("width", (_new+16)+'px');

        });
      }
      $('#ilslider').slider({'slide':sliderChange, 'min' : '40','max' :'120','startValue': '60'});