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.
On Tue, Jul 1, 2008 at 11:27 PM, El Magnifico
<openxs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> 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.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---