我的网站上实现了一个jQuery UI滑块。滑块高度为600px,它是一个垂直滑块。当我单击滑块背景并且我没有看到滑块处理程序时,页面将返回到滑块处理程序的顶部。我不知道如何禁用此功能。我不想在点击后返回顶部。
有人可以帮忙吗?
HTML:
<div id="first-slider1"></div>
JS(所有MVC模型):
var slider1 = new Slider('first-slider1','vertical',false,false,0,1,1,1,1,700);
function Slider(name,orientation,range,disabled,min,max,value,zmiana,zmieniona,animate) {
this.name = name;
this.orientation = orientation;
this.range = range;
this.disabled = disabled;
this.min = min;
this.max = max;
this.value = value;
this.zmiana = zmiana;
this.zmieniona = zmieniona;
this.animate = animate
}
CSS
first-slider1 {
margin-top: 40px;
width: 18px;
height: 589px;
background: url('../img/suwak-tlo.jpg') no-repeat !important;
border: none;
float: left;
margin-left: 10%;
}