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 8175005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:36:49+00:00 2026-06-06T22:36:49+00:00

I am currently stuck at the part whenever I drag a HTML5 slider, it

  • 0

I am currently stuck at the part whenever I drag a HTML5 slider, it will show a thumbnail/small picture on the top or bottom of the slider. My slider is something like this…

 <input name="sliderStatus"  id="sliderStatus" type="range" min="0" max="100" value="0" step="1"/>

But how to do the thumbnail thingy? Any example? Thanks (:

  • 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-06T22:36:50+00:00Added an answer on June 6, 2026 at 10:36 pm

    As I understand you, you want to change thumbnail size according to the input range value.

    You need to add onchange event listener to your range input and attach it to some callback, updateThumbnail for example:

    <input name="sliderStatus" onchange="updateThumbnail(this)"  id="sliderStatus" type="range" min="0" max="100" value="0" step="1"/>
    

    Then in your callback according to your value you can change thumbnail width:

    function updateThumbnail(rangeInput) {
        var myImage = document.getElementById('someImage');
        myImage.width = rangeInput.value;
        myImage.height = rangeInput.value;
    }
    

    UPDATE:

    According to your comment you need to change step attribute in your range input:
    step=”10″

    And for example modify your function to show your images:

    function updateThumbnail(rangeInput) {
        var previousImage = document.getElementById('someImage' + (rangeInput.value - 10));
        if(previousImage) {
            previousImage.style.display = 'none';
        }
        var nextImage = document.getElementById('someImage' + rangeInput.value);
        nextImage.style.display = 'block';
    }
    

    Html markup for images should be:

    <img src="pathToThumbnail" id="someImage0" style="display: block;">
    <img src="pathToThumbnail" id="someImage10" style="display: none;">
    <img src="pathToThumbnail" id="someImage20" style="display: none;">
    ...
    <img src="pathToThumbnail" id="someImage100" style="display: none;">
    

    See demo on jsFiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a video player and am kinda stuck at the volume slider part.
I am currently stuck on the part where user use his username and password
i am stuck in the part where i have to log out the currently
I am currently stuck, having two separate glossaries: main & acronyms . Acronyms glossary
I'm currently stuck on this problem. I've hooked into the method_missing function in a
My app, tommienutest is currently stuck in Awaiting Recurring Charge Cancellation-limbo. Is there any
I'm just getting started with Visual Basic .NET and I'm currently stuck on the
I'm stuck trying to remove the nested part from the following query : SELECT
i'm currently creating a database program in java and i am a bit stuck
I have currently moved my blogengine over from Linq2Sql to NHIbernate. I'm stuck at

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.