Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8383707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:13:36+00:00 2026-06-09T17:13:36+00:00

I am using Script.aculo.us Slider.js to display dual sliders. It working perfectly. what I

  • 0

I am using Script.aculo.us Slider.js to display dual sliders. It working perfectly.
what I want to do is to change the color to track only in between these two slider.

For example if 1st Slider is on value 5 and 2nd is on value 8. I want that the track fron 5-8 is green and the rest is gray. to simulate king of selected range.

Is it possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:13:38+00:00Added an answer on June 9, 2026 at 5:13 pm

    I have figured it out, it is possible by using 2 options properties
    startSpan and endSpan.

    Maybe it is useful for someone else I am pasting here sample HTML snippt and javascript

    <div id="slider-week-track">
      <div id="span1" style="float:left;background-color: #B7C0CD; height: 11px;"></div>
      <div class="slider-week slider-min" id="slider-week-min-handle"></div>
      <div class="slider-week slider-max" id="slider-week-max-handle"></div>
      <div id="span2" style="float:right;background-color: #B7C0CD; height: 11px;"></div>
    </div>
    

    and javascript

    new Control.Slider(this.options.handles, 'slider-week-track', {
                            range:$R(0,10, false),
                            sliderValue: [1,5],
                            values: [0,1,2,3,4,5,6,7,8,9,10],
                            restricted: true,
                            startSpan: 'span1',
                            endSpan: 'span2',
                            onChange:   function(val) { 
                                //your code here
                            }
            });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created an animation using script.aculo.us. However, when the animation is finished, I want
Using a script, I was to change the prompt of the parent Bash shell.
I've been using this script for a long time and it works perfectly in
I'm using the Prototype (and script.aculo.us) javascript library - since it's what comes with
I'd been using a script to update a database based on the difference between
Using Prototype and Script.aculo.us, I am trying to make all tags with an ID
I'm using the Script# library with ASP.NET. I want to listen and respond to
I am using a combination of prototype and script.aculo.us to implement a lightbox effect
I want to create a Cluster Generic Service using script. We have Windows Server
I am trying to display a table with data in runtime using script. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.