javascript - How To Stop Animation/GIF And Display A Message -
i have simple animation made in flash colour changing wheel wheel, , gif ready too. when goes site, wheel keeps animating.
but need when presses "stop animation" button near animation, message displayed on screen. better if can popped out , can sent user's email id inputs.
a great side can me.
here html:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>createjs export anime</title> <script src="http://code.createjs.com/easeljs-0.6.0.min.js"></script> <script src="http://code.createjs.com/tweenjs-0.4.0.min.js"></script> <script src="http://code.createjs.com/movieclip-0.6.0.min.js"></script> <script src="untitled-1.js"></script> <script> var canvas, stage, exportroot; function init() { canvas = document.getelementbyid("canvas"); exportroot = new lib.untitled1(); stage = new createjs.stage(canvas); stage.addchild(exportroot); stage.update(); createjs.ticker.setfps(2); createjs.ticker.addeventlistener("tick", stage); } </script> </head> <body onload="init();" style="background-color:#d4d4d4"> <canvas id="canvas" width="550" height="400" style="background-color:#ffffff"> </canvas>
Comments
Post a Comment