Hi, I have this multi-handle slider: http://tiny.cc/i9ZI1 but I'd like to have a DIV bewteen the two slider so I could give it a color or a bg, how'd I do that? Many thanks.
on 2008-07-01 13:28
on 2008-07-02 02:51
Hi
Your slider handles have a left position, (style.left) which should be
relative to the left of the containing div (track).
You know the slider width, so if you wanted a div, lets call it
highlight to
be displayed in the correct left position, with a width,
add it to the markup, and then when your sliders are moved, via a
callback
function do something like this:
where highlight, leftHandle and rightHandle are dom references.
highlight.setStyle({ left: leftHandle.style.left +
leftHandle.style.width,
width:(rightHandle.style.left - leftHandle.style.left -
leftHandle.style.width); })
Also, your example page-refreshes in IE7 when I finish moving a slider,
not
sure if that's what you wanted.