CGordon
09-29-2014, 09:56 PM
1) Script Title: Imagepanner.js
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/imagepanner.htm
3) Describe problem: Can this tool be used with DIVS as plus and minus icons?
Currently we have (which works great):
<img src="/Content/productdetails/zoom_in.png" width="17" height="16" id="zoom_in" title="Zoom In">
But would like to do something like this:
<div class="svg-container plus" id="zoom_in" title="Zoom In">
<use xlink:href="#icon-plus"></use>
</div>
Please let me know if this is possible. Or if there is a version out there of this tool that is already setup to use, for example the click events of a div.
This line makes me think it's not easily done.
magnifyicons: ['/Content/productdetails/zoom_in.png', '/Content/productdetails/zoom_out.png', 17, 16], //set path to zoom in/out images, plus their dimensions
4) Also, does this tool work on mobile phones from within the browser? How responsive is this tool when the browser is re-sized.
Please help. Thank so much, we've been using this tool for years and love it. I'd like to keep using it, but our new UI uses divs to display the zoom in and zoom out buttons. Thank you!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/imagepanner.htm
3) Describe problem: Can this tool be used with DIVS as plus and minus icons?
Currently we have (which works great):
<img src="/Content/productdetails/zoom_in.png" width="17" height="16" id="zoom_in" title="Zoom In">
But would like to do something like this:
<div class="svg-container plus" id="zoom_in" title="Zoom In">
<use xlink:href="#icon-plus"></use>
</div>
Please let me know if this is possible. Or if there is a version out there of this tool that is already setup to use, for example the click events of a div.
This line makes me think it's not easily done.
magnifyicons: ['/Content/productdetails/zoom_in.png', '/Content/productdetails/zoom_out.png', 17, 16], //set path to zoom in/out images, plus their dimensions
4) Also, does this tool work on mobile phones from within the browser? How responsive is this tool when the browser is re-sized.
Please help. Thank so much, we've been using this tool for years and love it. I'd like to keep using it, but our new UI uses divs to display the zoom in and zoom out buttons. Thank you!