الدعم » استكشاف الأخطاء وإصلاحها » Hello my friends, how can I edit this script, please?

  • Mykaz

    (@newsytop)


    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);

    I want to change the size and color of the word

    “You can download the file in ”