Site Notice

hello, world

Difference between revisions of "Do not press the button"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
 
([InPageEdit] 没有编辑摘要)
Line 1: Line 1:
 +
<html>
 
<button onclick="showNew()">点我</button>
 
<button onclick="showNew()">点我</button>
 
<p id="joke" style="display:none">呵呵,你以为我会让你看到吗?</p>
 
<p id="joke" style="display:none">呵呵,你以为我会让你看到吗?</p>
Line 36: Line 37:
 
   }
 
   }
 
</script>
 
</script>
 +
</html>

Revision as of 17:09, 21 November 2019

<html> <button onclick="showNew()">点我</button> <p id="joke" style="display:none">呵呵,你以为我会让你看到吗?</p> <p id="new" style="display:none">好好好,给你点面子好了!</p> <p id="final" style="display:none">切,你以为我会放过你吗?准备接受最后的审判吧</p> <style>

 button {
   padding: 0.5em 0.7em;
   background: #3380ff;
   color: white;
   font-weight: bold;
   border: 1px solid #3380ff;
 }

</style> <script>

 function showNew() {
   $('#joke').show(50);
   setTimeout(function () {
     $('#new').show(150);
     $('#joke').hide(150);
     setTimeout(function () {
       $('#joke').remove();
       $('#final').show(150);
       setTimeout(function(){
         $('#final').html('死吧!!!');
         setInterval(function(){
           $('#final').html(function(){
             var $this = $(this);
             var before = $this.text();
             var final = before + before;
             return final;
           });
         },100);
       },3000);
     }, 3000);
   }, 3000);
 }

</script> </html>