I am trying to use jcanvas and jquery together. But It's not working, please help me.
Code:<!doctype html> <html> <head> <meta charset="utf-8"> <title>Demo</title> <canvas width="500" height="250"></canvas> </head> <script src="jquery.js"></script> <script src="jcanvas.js"></script> <script> $("canvas").drawImage({ source: $('#draggable')[0], x: 50, y: 50, width: 60, fromCenter: false }); </script> <body> <img src="../image/0.jpg" class="drag-image" id="draggable"/> </div> </body> </html>


Reply With Quote
Bookmarks