LMS行政E化暨班級社群教職員工數位歷程檔線上手冊Login
Position: 王文良 > 專題製作
HTML5
by 王文良 2018-04-09 14:36:35, Reply(1), Views(537)
<!DOCTYPE html>
<html>
 <head>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
  </script>
  <script>
    $(document).ready(function(){
      $("#bth").click(function(){
        $("p").hide(2000);
      });
      $("#bts").click(function(){
        $("p").show(3000);
      });
    });
    
  </script>
 </head>
 <body>
  <button id=bth>消失</button>
  <button id=bts>出現</button>
  <p>If you click on me, I will disappear.</p>
  <p>Click me away!</p>
  <p>Click me too!</p>

 </body>
</html>
Attachments:
Reply(1)
      000
Reply