add onlinewanteds in factionmenü

This commit is contained in:
michael.reiswich
2021-01-29 19:54:48 +01:00
parent 42b294d805
commit 88e7df88c2
6 changed files with 171 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
function ad_row(id, name, wanteds) {
var table_id = "t1";
var table = document.getElementById(table_id);
var rows = table.getElementsByTagName('tr').length;
var tr = table.insertRow(rows);
var td1 = document.createElement('td');
var td2 = document.createElement('td');
var td3 = document.createElement('td');
var test = wanteds;
td1.innerHTML = ''+id;
td2.innerHTML = name.slice(1, -1);
td3.innerHTML = '' +wanteds;
tr.appendChild(td1);
tr.appendChild(td2);
tr.appendChild(td3);
}