Using button to change value
Hi folks,
i'm currently working on a 360° view using the reel.js plugin (reel360.org) - i'm trying to use a simple button to change the image folder or range.. the button does not do anything, what am i doing wrong?
Code:
- <html>
- <head>
- <script src='http://code.jquery.com/jquery-1.9.1.min.js' type='text/javascript'></script>
- <script src='images/jquery.reel.js' type='text/javascript'></script>
- <script>
- $(function () {
- $(document).ready("#change").click(function () {
- $("#image").attr("data-images", "images/neu###.jpg|000..036");
- $.reel.scan();
- });
- });
- </script>
- </head>
- <body>
- <img src="images/bild000.jpg" width="640" height="480"
- class="reel"
- id="image"
- data-images="images/bild###.jpg|000..036"
- data-cw="true"
- data-frame="32"
- data-speed="-0.2"
- data-duration="6"
- data-velocity="3"
- data-brake="0.2">
- <button id="change"> Farbe wechseln </button>
- </body>
- </html>
Any help is greatly appreciated!
Thanks in advance