Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <style type="text/css"> div{ background-color:#ccc; border:1px solid #555; margin-top:20px; width:300px; } </style> </head> <body> <button id="start">Start</button> <button id="stop">Stop</button> <div>TÀI LIỆU HỌC LẬP TRÌNH WEB</div> <script> $(document).ready(function(){ $("#start").click(function(){ $("div").animate({width:"500px"},6000); $("div").animate({height:"350px"},6000); $("div").animate({fontSize:"80px"},6000); }); $("#stop").click(function(){ $("div").finish(); }); }) </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <style type="text/css"> div{ background-color:#ccc; border:1px solid #555; margin-top:20px; width:300px; } </style> </head> <body> <button id="start">Start</button> <button id="stop">Stop</button> <div>TÀI LIỆU HỌC LẬP TRÌNH WEB</div> <script> $(document).ready(function(){ $("#start").click(function(){ $("div").animate({width:"500px"},6000); $("div").animate({height:"350px"},6000); $("div").animate({fontSize:"80px"},6000); }); $("#stop").click(function(){ $("div").finish(); }); }) </script> </body> </html>