• 18-09-2017, 00:57:10
    #1
    Merhaba

    http://jsfiddle.net/rATW7/506/

    Linkteki Java ve Css kodlarını web sitemde aktif hale getirmek için nereye eklemeliyim
  • 18-09-2017, 01:10:00
    #2
    Üyeliği durduruldu
    Baggwell adlı üyeden alıntı: mesajı görüntüle
    Merhaba

    http://jsfiddle.net/rATW7/506/

    Linkteki Java ve Css kodlarını web sitemde aktif hale getirmek için nereye eklemeliyim
    java degil, javascript o. Java farklı
  • 18-09-2017, 14:23:11
    #3
    Javascript kodunu nasıl ekleyeceğim konusunda yardımcı olursanız sevinirim.
  • 18-09-2017, 14:42:45
    #4
    Bu şekilde yerleştirirsen çalışır.

    <html>
    <head>
    
        <title></title>
        
        <style>
            .button {
            background-color: #ddcccc;
            border: 1px solid black;
            color: black;
            font-family: Arial;
            font-size: small;
            text-decoration: none;
            padding: 3px;
        }
        </style>
    
    </head>
    <body>
    
    <a href="downloadFile.zip" id="download" class="button">Download the file...</a>
    
    <script>
    
    var downloadButton = document.getElementById("download");
    var counter = 10;
    var newElement = document.createElement("p");
    newElement.innerHTML = "You can download the file in 10 seconds.";
    var id;
    
    downloadButton.parentNode.replaceChild(newElement, downloadButton);
    
    id = setInterval(function() {
        counter--;
        if(counter < 0) {
            newElement.parentNode.replaceChild(downloadButton, newElement);
            clearInterval(id);
        } else {
            newElement.innerHTML = "You can download the file in " + counter.toString() + " seconds.";
        }
    }, 1000);
    
    
    </script>
    </body>
    </html>
  • 18-09-2017, 22:34:25
    #5
    Teşekkür ederim