当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Lightweight jQuery (or non-jQuery) slider control?

问题描述:

I need something like the slider control from jQueryUI, but I don't want to use the whole framework for only one control.

I tried searching Google but I get results for image sliders rather than the type of control I'm after. Perhaps there is another name for this kind of control?

I found only this

Which is exactly what I want, but it hasn't been updated in a long time, and I don't have the facilities to make sure it works in all browsers.

Thanks!

网友答案:

There isn't much to a custom jQuery UI download.

Plus, the files are available on Google's CDN.

jQuery

http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

jQuery UI

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js

jQuery UI Theme

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/smoothness/jquery-ui.css

Your end user may not even need to download anything new.

网友答案:

You can customize your jQuery UI download to only include the things required for the slider

网友答案:

Like Petah says in this thread, you can customize your jQuery UI download at:

http://jqueryui.com/download

Just first click all 'Deselect all' links and then start checking the components you want

分享给朋友:
您可能感兴趣的文章:
随机阅读: