• 25-08-2023, 12:12:32
    #1
    Kurumsal Üye
    Komik olduğunu düşündüğüm bir site oluşturdum
    Site için tıklayın
    birçok versiyona uyarlanabilir, hayır butonuna bastığınızda buton sizden kaçıyor. Evet'e basabilirsiniz yalnızca

    Kod:
    <!DOCTYPE html>
    <html lang="tr">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
    body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    }
    #question, #thankYouMessage {
    font-size: 24px;
    margin-bottom: 20px;
    }
    #yesButton, #noButton {
    font-size: 20px;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    }
    #noButton {
    position: absolute;
    }
    </style>
    <script>
    function showThankYou() {
    document.getElementById("question").style.display = "none";
    document.getElementById("yesButton").style.display = "none";
    document.getElementById("thankYouMessage").style.d isplay = "block";
    moveNoButton();
    }

    function moveNoButton() {
    const maxWidth = window.innerWidth - 150; // 150px is the button width
    const maxHeight = window.innerHeight - 50; // 50px is the button height
    const randomX = Math.floor(Math.random() * maxWidth);
    const randomY = Math.floor(Math.random() * maxHeight);
    document.getElementById("noButton").style.left = randomX + "px";
    document.getElementById("noButton").style.top = randomY + "px";
    }
    </script>
    </head>
    <body>
    <div id="question">Devletten memnun musunuz?</div>
    <button id="yesButton" onclick="showThankYou()">Evet</button>
    <button id="noButton" onclick="moveNoButton()">Hayır</button>
    <div id="thankYouMessage" style="display:none;">Teşekkür ederiz</div>
    </body>
    </html>
  • 25-08-2023, 12:13:41
    #2
    tıklamadan kaçsa daha iyi olurmuş
  • 25-08-2023, 12:13:54
    #3
    tıklayamadan kaçsa daha hoş olabilir
  • 25-08-2023, 12:14:48
    #4
    <html lang="tr"><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
    body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    }
    #question, #thankYouMessage {
    font-size: 24px;
    margin-bottom: 20px;
    }
    #yesButton, #noButton {
    font-size: 20px;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    }
    #noButton {
    position: absolute;
    }
    </style>
    <script>
      function showThankYou() {
        document.getElementById("question").style.display = "none";
        document.getElementById("noButton").style.display = "none";
         document.getElementById("yesButton").style.display = "none";
        document.getElementById("thankYouMessage").style.display = "block";
        moveNoButton();
    
      }
    
    function moveNoButton() {
    const maxWidth = window.innerWidth - 150; // 150px is the button width
    const maxHeight = window.innerHeight - 50; // 50px is the button height
    const randomX = Math.floor(Math.random() * maxWidth);
    const randomY = Math.floor(Math.random() * maxHeight);
    document.getElementById("noButton").style.left = randomX + "px";
    document.getElementById("noButton").style.top = randomY + "px";
    }
    </script>
    </head>
    <body>
    <div id="question">Hizmelerimizden memnun musunuz?</div>
    <button id="yesButton" onclick="showThankYou()">Evet</button>
    <button id="noButton" onclick="moveNoButton()" onmouseover="moveNoButton()" style="left: 249px; top: 445px;">Hayır</button>
    <div id="thankYouMessage" style="display:none;">Teşekkür ederiz</div>
    
    
    
    
    </body></html>
    Böyle daha iyi
  • 25-08-2023, 12:14:56
    #5
    Kurumsal Üye
    EnginAYDIN adlı üyeden alıntı: mesajı görüntüle
    tıklamadan kaçsa daha iyi olurmuş
    yusufengz adlı üyeden alıntı: mesajı görüntüle
    tıklayamadan kaçsa daha hoş olabilir
    Bunu düşündüm ancak mobilde maalesef tıklamak gerekiyor
  • 25-08-2023, 12:15:12
    #6
    teknik olarak basıyorum, bastıktan sonra kaçıyor
  • 25-08-2023, 12:18:19
    #7
    Evete bastım küçük bir çılgınlık
    • Recep
    Recep bunu beğendi.
    1 kişi bunu beğendi.
  • 25-08-2023, 12:18:58
    #8
    Kurumsal Üye
    Misafir adlı üyeden alıntı: mesajı görüntüle
    Evete bastım küçük bir çılgınlık
    Teşekkür Ederiz 😂
  • 25-08-2023, 12:19:59
    #9
    Sinir merkezi gibi..