Scaling down a slider and adding javascript to the starting and stopping positions
Hello I am working with a JQuery slider:
-
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>jQuery UI Slider - Default functionality</title>
- <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
- <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
- <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
- <link rel="stylesheet" href="/resources/demos/style.css" />
- <script>
- $(function() {
- $( "#slider" ).slider();
- });
- </script>
- </head>
- <body>
- <div id="slider"></div>
- </body>
- </html>
- I need to be able to scale it down, say to about 20% of its size.
3. In addition, I need to be able to add start and stop positions, something similar to what I had done with some buttons:
-
- <input type="image" src="#/back.png" class="bottom" alt="Slower Scroll Speed" width="24" height="24" onClick="document.getElementById('test').setAttribute('scrollamount',1,0);">
- <input type="image" src="#/start.png" alt="Start Scrolling" width="24" height="24" onClick="document.getElementById('test').start();">
- <input type="image" src="#/forward.png" alt="Faster Scroll Speed" width="24" height="24" onClick="document.getElementById('test').setAttribute('scrollamount',8,0);">
- <input type="image" src="#/stop.png" alt="Stop Scrolling" width="24" height="24" onClick="document.getElementById('test').stop();">