Fără prea multă vorbărie, direct codul, așa cum l-am folosit într-un proiect recent:
(function($){
$.fn.ntzSlider = function(options){
o = jQuery.extend({
height: 135,
incrementBy:5
}, options);
return this.each(function(){
var t=$(this);
t.wrap('<div class="ntzSliderWrapper"/>');
t.wrap('<div class="ntzSliderWrapper2"/>');
var wrapper = t.closest('.ntzSliderWrapper'),
wrapper2 = t.closest('.ntzSliderWrapper2'),
elWidth = t.find('li:first').width(),
[...]
- Posted in:
- Playground,
- jQuery
