Guest User

BaktashCodeZCastle

a guest
Sep 18th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.24 KB | Software | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>Document</title>
  7.     <style>
  8.         #b1{
  9.             background: red;
  10.             height: 60px;
  11.             width: 80px;
  12.             transition: 0.4s;
  13.         }
  14.         #b1:hover{
  15.             width: 120px;
  16.         }
  17.         #text1{
  18.             margin-top: -50px;
  19.             margin-left: 140px;
  20.         }
  21.     </style>
  22. </head>
  23. <body>
  24.     <h2>Hi, This is a Website that <b>i</b> made it!</h2>
  25.     <h3>So pls follow me on castle, wait...</h3>
  26.     <h2>Didn't you come from my castle, then why you don't <b>FOLLOW ME?</b></h2>
  27.     <h4>just kidding but follow me man follow me. <i>thanks.</i></h4>
  28.     <button id="b1" onclick="B1()">I Followed you!</button>
  29.     <h4 id="text1"></h4>
  30.     <script>
  31.         let i = 0
  32.         let j = 0
  33.         let t1 = document.getElementById("text1");
  34.         function B1(){
  35.             if (i == 0){
  36.                 t1.innerHTML = "Thanks!";
  37.                 i++;
  38.                 j++;
  39.             }
  40.             else if (i == 1){
  41.                 t1.innerHTML = "Ok i got it!";
  42.                 i++;
  43.                 j++;
  44.             }
  45.             else if (i == 2){
  46.                 t1.innerHTML = "Ok ok Chill."
  47.                 i++;
  48.                 j++;
  49.             }
  50.             else if (i == 3){
  51.                 t1.innerHTML = "o my godddd, got it."
  52.                 i++;
  53.                 j++;
  54.             }
  55.             else if (i == 4){
  56.                 t1.innerHTML = "😑";
  57.                 i++;
  58.                 j++;
  59.             }
  60.             else if (i == 5){
  61.                 t1.innerHTML = "😑😑😑";
  62.                 i++;
  63.                 j++;
  64.             }
  65.             else if (i == 6){
  66.                 t1.innerHTML = "You clickeed me " + j + " fricking times😑";
  67.                 i++;
  68.                 j++;
  69.             }
  70.             else if (i == 7){
  71.                 t1.innerHTML = "😑😑😑😑";
  72.                 i++;
  73.                 j++;
  74.             }
  75.             else if (i == 8){
  76.                 t1.innerHTML = "i'm out.";
  77.                 i = 4;
  78.                 j++;
  79.             }
  80.         }
  81.     </script>
  82. </body>
  83. </html>
Tags: html CSS js
Advertisement
Add Comment
Please, Sign In to add comment