下面的标签是一个滑块控件
<input type="range"/>
它的样子是这样的:
可能没什么人会喜欢这么原始的样式,同时出于复用的考虑,于是用js封装了一个控件 LZF.Slider.js,它可以自定义样式, 原码在最后贴出来。
/* 直接初始化一个Slider对象*/
/* Slider函数有三个参数,(可选)options-自定义样式,callback-值改变时回调,(可选)delectCallback-删除控件时回调*/
//它的默认样式:
var defaultSetting = {
'max': 100, //取值范围的最大值
'topVernier': false, //顶部游标
'leftRightVernier': false, //左右文本,标志起始值
'style': {
'top': '0px',
'left': '0%',
'width': '150px',
'trackColor': '#47B1FF' //轨道颜色
}
};
1.实例化一个slider
var slider = new Slider(function (value) {
console.log(value);
});
默认样式
2.自定义样式 slider
var slider = new Slider(
{ 'max':1000,
'topVernier':true,
'leftRightVernier':true,
'style':{
'top':'100px',
'trackColor':'red'
}
},
function (value) {
});
自定义样式
3.带删除按钮 slider
//传入删除的回调参数即可
var slider = new Slider(
{
'topVernier':true,
'leftRightVernier':false,
'style':{
'top':'100px',
'trackColor':'black'
}
},
function (value) {
console.log(value);
},
function() {
console.log('slider 已删除');
}
);
带删除按钮
LZF.Slider.js 代码
/*LZF.Slider.js */
function Slider( /*optional*/ options, callback, /*optional*/ delectCallback) {
this.elementID = 'sliderID';
this._init_(options, callback, delectCallback);
}
Object.extend = function(target, /*optional*/ source, /*optional*/ deep) {
target = target || {};
var sType = typeof source,
i = 1,
options;
//不传source的情况
if(sType === 'undefined' || sType === 'boolean') {
deep = sType === 'boolean' ? source : false;
source = target;
target = this;
}
//传source,但不是function和object的情况
if(typeof source !== 'object' && Object.prototype.toString.call(source) !== '[object Function]') {
source = {};
}
while(i <= 2) {
options = i === 1 ? target : source;
if(options != null) {
for(var name in options) {
var src = target[name],
copy = options[name];
if(target === copy) continue;
if(deep && copy && typeof copy === 'object' && !copy.nodeType)
target[name] = this.extend(src || (copy.length != null ? [] : {}), copy, deep);
else if(copy !== undefined)
target[name] = copy;
}
}
i++;
}
return target;
};
Slider.prototype = {
constructor: Slider,
_init_: function(options, callback, delectCallback) {
var imageDataURL = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAgAElEQVR4Xu2dCZgdRdX3z6k7WyABNQHZlIAjmemuvkkcVAIIEUEQQRCILAqiAgrC64YiomwioLjiCigi4AIREUVA1oBgQBmT3K7uSXCE4AISEwQSZJZ763xP8d0ohCTT93b1du/p5+HB96XqX6d+VTP/6aXOQeCLCTABJsAEmEATBLCJPtyFCTABJsAEmACwgfAmYAJMgAkwgaYIsIE0hY07MQEmwASYABsI7wEmwASYABNoigAbSFPYuBMTYAJMgAmwgfAeYAJMgAkwgaYIsIE0hY07MQEmwASYABsI7wEmwASYABNoigAbSFPYuBMTYAJMgAmwgfAeYAJMgAkwgaYIsIE0hY07MQEmwASYABsI7wEmwASYABNoigAbSFPYuBMTYAJMgAmwgfAeYAJMgAkwgaYIsIE0hY07MQEmwASYABsI7wEmwASYABNoigAbSFPYuBMTYAJMgAmwgfAeYAJMgAkwgaYIsIE0hY07MQEmwASYABsI7wEmwASYABNoigAbSFPYuBMTYAJMgAmwgfAeYAJMgAkwgaYIsIE0hY07MQEmwASYABsI74GWI+A4ThcRTe3s7Jxq/m3+QcQtiGha/X9PBYBJAPAyADA/Ax1a6ykGhBDC/P97XghFaz0OAGvq//1ZABgz/xsRn6rVaiNCiFWIuEprbf69koj+Zf7vUqm06umnn161fPnykZaDzBNiAvUfHgbBBApFwBhEqVTaDgB21FpvI4TYWmu9IyLuaP5/ADDdeEGOJvVvrfXDQojHiegxIcTDAPD8P2NjYw8tW7ZsdY5i5VCYQGQCfAcSGRU3TJvAwMBA5/j4+AwiKmutywBQRkQXAIx55Mkg4qJ5HAACIqoIIXxErDzzzDMh37nExcr9kybABpI0YdaPRKBcLm+qtX49AJh/vPo/DgB0RRJosUZEVEXEhwDAB4AliLi4q6vr94ODg0+32FR5OgUmwAZS4MUrcuiO42yFiMYsdkPE3QFgZwDoLvKcUordPPq6DxHvrdVq94VhGKQ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EyACTCBfBFgA8nXenA0TIAJMIHCEGADKcxScaBMgAkwgXwRYAPJ13pwNEyACTCBwhBgAynMUnGgTIAJMIF8EWADydd6cDRMgAkwgcIQYAMpzFJxoEyACTCBfBH4f0uzkVOx5R5HAAAAAElFTkSuQmCC';
var defaultSetting = {
'max': 100,
'topVernier': false,
'leftRightVernier': false,
'style': {
'top': '0px',
'left': '0%',
'width': '150px',
'trackColor': '#47B1FF'
}
};
if(typeof options === 'object') defaultSetting = Object.extend(defaultSetting, options, true);
else if(typeof options === 'function'&&delectCallback === undefined){
delectCallback = callback;
callback = options;
options = undefined;
}
//添加 Sclider.css
var style = document.createElement("style");
if(typeof style != "undefined") document.getElementsByTagName("head")[0].appendChild(style);
var sheet = style.sheet;
sheet.insertRule('input[type=range] {' +
'-webkit-appearance: none;' +
'width:' + defaultSetting.style.width + ';' +
'height: 5px;' +
'vertical-align: middle;' +
'border-radius: 2.5px;}', 0);
sheet.insertRule('input[type=range]::-webkit-slider-runnable-track {' +
'height: 5px;' +
'border-radius: 2.5px;' +
'border: solid 1px rgba(0, 0, 0, 0.11);}', 0);
sheet.insertRule('input[type=range]:focus {outline: none;}', 0);
sheet.insertRule('input[type=range]::-webkit-slider-thumb {' +
'-webkit-appearance: none;' +
'height: 20px;' +
'width: 20px;' +
'margin-top: -8px;' +
'background: #ffffff;' +
'border-radius: 50%;' +
'border: solid 1px rgba(0, 0, 0, 0.11);' +
'box-shadow: 0 .125em .125em #3b4547;}', 0);
var bodyEle = document.getElementsByTagName('body')[0];
var containerEle = document.createElement('div');
containerEle.setAttribute("style",
"position: absolute;" +
"display: block;" +
"z-index: 1000;" +
"top:" + defaultSetting.style.top + ";" +
"vertical-align: middle;" +
"left:" + defaultSetting.style.left + ";"
);
var sValueEle = undefined,
eValueEle = undefined,
mValueEle = undefined;
if(typeof delectCallback !== 'undefined') {
var closeEle = document.createElement('img');
closeEle.setAttribute('src', imageDataURL);
closeEle.setAttribute('width', '25px');
closeEle.setAttribute('height', '25px');
closeEle.setAttribute('style', 'vertical-align: middle; margin-right:5px');
containerEle.appendChild(closeEle);
//关闭按钮点击事件
closeEle.onclick = function() {
bodyEle.removeChild(containerEle);
if(typeof delectCallback !== 'undefined') delectCallback();
}
}
if(defaultSetting.leftRightVernier) {
sValueEle = document.createElement('label');
sValueEle.innerHTML = '0';
sValueEle.setAttribute('style', 'vertical-align: middle; margin-right:5px');
containerEle.appendChild(sValueEle);
}
var vernierSliderEle = document.createElement('div');
vernierSliderEle.setAttribute("style", "display: inline-block;");
if(defaultSetting.topVernier) {
var mValueWrapperEle = document.createElement('div');
mValueEle = document.createElement('label');
mValueEle.innerHTML = '0';
mValueEle.setAttribute('style', 'position: relative;');
mValueWrapperEle.appendChild(mValueEle);
vernierSliderEle.appendChild(mValueWrapperEle);
}
//默认区间 0 ~ 100
var sliderEle = document.createElement('input');
sliderEle.setAttribute('type', 'range');
sliderEle.setAttribute('value', 0);
sliderEle.oninput = function() {
if(mValueEle !== undefined){
mValueEle.style.left = this.value + '%';
mValueEle.innerHTML = defaultSetting.max/100 * this.value;
}
var lastValue = 100 - this.value;
this.style.background = 'linear-gradient(to right, '+defaultSetting.style.trackColor+', '+defaultSetting.style.trackColor+' ' + this.value + '%, white, white, white, white, white, white, white, white,white ' + lastValue + '%, white)';
callback(defaultSetting.max/100 * this.value);
}
vernierSliderEle.appendChild(sliderEle);
containerEle.appendChild(vernierSliderEle);
if(defaultSetting.leftRightVernier) {
eValueEle = document.createElement('label');
eValueEle.innerHTML = defaultSetting.max;
eValueEle.setAttribute('style', 'vertical-align: middle; margin-left:5px');
containerEle.appendChild(eValueEle);
}
bodyEle.appendChild(containerEle);
},
removeFromNodes: function(callback) {
callback();
}
};
网友评论