Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> </head> <body> <button type="button">Click here</button> <br> <img src="../image/troll-face.png"> <script> $(document).ready(function(){ $("button").mousedown(function(){ $("img").hide(); }); $("button").mouseup(function(){ $("img").show(); }); }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> </head> <body> <button type="button">Click here</button> <br> <img src="../image/troll-face.png"> <script> $(document).ready(function(){ $("button").mousedown(function(){ $("img").hide(); }); $("button").mouseup(function(){ $("img").show(); }); }); </script> </body> </html>