I want a use a Dual Slider (开发者_StackOverflow中文版Range) HTML control, similar to the JQuery dual Slider, without having to load a huge JavaScript framework just to use it.
Does such a dual slider control exist, that is light weight (filesize) and doesn't require me loading any JavaScript frameworks?
The simplest solution might be to use jQuery and the closure compiler. I believe the closure compiler will actually remove code that is not used. I have never actually tried this, so YMMV.
Your simplest answer is to use an interpreted language, server side construct or a framework. No alternative to your requested solution. Your asking html to do something it is not intended to do natively. You are also asking that the browsers support features for which they are not natively built to support without compilations, interpretations and math services built in.
Your best bet is to link in to the jquery object from google (@ around 52kbps) your not asking for alot of your users. Only other option is to use Flash which is twice the problem and 1/2 the fun.
精彩评论