jQuery 滑動插件:sGlide
sGlides 是一款幫助用戶生成簡單,輕量級滑動器的 jQuery 插件,可以很方便使用 CSS 自定義和設定自己的風格。
$('#slider').sGlide({ startAt: 60, // start slider knob at - default: 0 image: '' // string - image path width: 200, // integer - default: 100 height: 20, // integer - default: 40 unit: 'px', // 'px' or '%' (default; doesn't apply to height) pill: false, // boolean - default: true snap: { points: 5, markers: true, onlyOnDrop: true }, disabled: true, // boolean - default: false colorStart: // css value colorEnd: // css value vertical: // boolean - default: false showKnob: // boolean - default: true drop: function(o){ console.log(o.guid+': '+o.value+'%'); } });
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!