Alguem pode me da uma ajuda?
function mostrainfo(nome, tipo) { barra = document.getElementById('barra_vertical'); info = document.getElementById('info'); joga_fora = barra.removeChild(info); strong = document.createElement('strong'); strong.appendChild(document.createTextNode(nome)); p = document.createElement('p'); p.setAttribute("id","info"); p.appendChild(strong); p.appendChild(document.createElement('br')); p.appendChild(document.createTextNode("Tipo: "+tipo)); barra.appendChild(p); }