Set slide handle image : Slider « Dojo toolkit « JavaScript DHTML






Set slide handle image

 
<html>
  <head>
    <link rel="StyleSheet" type="text/css"
      href="js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
       dojo.require("dojo.parser");
       dojo.require("dijit.form.Slider");

    </script>
  </head>
  <body class="tundra">
    <div dojoType="dijit.form.HorizontalSlider"
         value="5" 
         minimum="-10" 
         maximum="10" 
         discreteValues="11"
         intermediateChanges="true"
         onChange="alert(arguments[0]);"
         handleSrc="preciseSliderThumb.png"
    ></div>
  </body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.Create vertical slider and set value, minimum, maximum and discreteValues
2.Horizontal slider bar
3.Simple slider
4.Slide back to original spot
5.Slide in animation
6.Slider on change dojo event
7.Slider on change event
8.Max/min slider value
9.Set intermediateChanges for Slider
10.Format slider value