Where to put the string tag or how to put the correct form ID

0

Hello, I would like the help from you, because I can not organize the code, it only takes it however when I implement it on this page, it does not work. What could change?

Code:

<html>
<head>
<title> Version</title>
</head>
<body onload="loadVersion()">
<div>
<div id="802470398582881273" align="center" style="width: 100%; overflow-y: 
hidden;" class="wcustomhtml">
    Versão :<font id="file1" size="4" color="#515151"></font>
</div>
</div>

<script type="text/javascript">
            //declaração da função JS
            function loadVersion() {
                // ALTERAR ENDEREÇO DO ARQUIVO

$.getJSON('http://teccitystore.com.br/downloads/files_versions.json', 
function(json) {
                    var objs = [[], [], []];
                    for (i=0; i<3; i++) {
                        objs[i] = json[i];
                    }
                    //SETANDO OS VALORES - PEGA ID E PASSA O VALOR DO JSON
                    var file1 = document.getElementById("file1").innerHTML = 
objs[0].filename+ "&nbsp;-&nbsp;v" + objs[0].version;
                    //var file2 = document.getElementById("file2").innerHTML = objs[1].filename+ "&nbsp;-&nbsp;v" + objs[1].version;
                    //var file3 = document.getElementById("file3").innerHTML = objs[2].filename+ "&nbsp;-&nbsp;v" + objs[2].version;            
                });
            };

        </script>

<body>
</html>
    
asked by anonymous 06.10.2017 / 22:29

0 answers