开发者

Jquery Slider control for volume

I want to create a slider to control the volume of the media player. How to design/create a slider using JQuer开发者_StackOverflow中文版y.

Geetha.


jQuery UI has one built in: http://docs.jquery.com/UI/Slider


Use jQuery slider: http://docs.jquery.com/UI/Slider

To get a value, you can use:

.slider("value")

If you want to get a value when a slider changed:

$( ".selector" ).slider({
   change: function(event, ui) {
   // value is ui.value
 }

});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜