function exibir(div_nome){ if(document.getElementById('formulario_comentarios_resposta1')=="[object HTMLDivElement]" || document.getElementById('formulario_comentarios_resposta1')=="[object]"){ document.getElementById(div_nome).innerHTML=""; tamanho_esquerda = document.getElementById('menu_corpo_esquerda').style.height = document.getElementById('principal').offsetHeight+"px"; } else{ document.getElementById(div_nome).innerHTML = "
"+document.getElementById("formulario_comentarios_resposta").innerHTML+"
"; } calcula_tamanho(); } function exibir_enviar_amigo(div_nome,div_nome2){ if(document.getElementById('formulario_enviar_erro1')=="[object HTMLDivElement]" || document.getElementById('formulario_enviar_erro1')=="[object]"){ document.getElementById(div_nome2).innerHTML=""; tamanho_esquerda = document.getElementById('menu_corpo_esquerda').style.height = document.getElementById('principal').offsetHeight+"px"; } if(document.getElementById('formulario_enviar_amigo1')=="[object HTMLDivElement]" || document.getElementById('formulario_enviar_amigo1')=="[object]"){ document.getElementById(div_nome).innerHTML=""; tamanho_esquerda = document.getElementById('menu_corpo_esquerda').style.height = document.getElementById('principal').offsetHeight+"px"; } else{ document.getElementById(div_nome).innerHTML = "
"+document.getElementById("formulario_enviar_amigo").innerHTML+"
"; } calcula_tamanho(); } function exibir_enviar_erro(div_nome,div_nome2){ if(document.getElementById('formulario_enviar_amigo1')=="[object HTMLDivElement]" || document.getElementById('formulario_enviar_amigo1')=="[object]"){ document.getElementById(div_nome2).innerHTML=""; tamanho_esquerda = document.getElementById('menu_corpo_esquerda').style.height = document.getElementById('principal').offsetHeight+"px"; } if(document.getElementById('formulario_enviar_erro1')=="[object HTMLDivElement]" || document.getElementById('formulario_enviar_erro1')=="[object]"){ document.getElementById(div_nome).innerHTML=""; tamanho_esquerda = document.getElementById('menu_corpo_esquerda').style.height = document.getElementById('principal').offsetHeight+"px"; } else{ document.getElementById(div_nome).innerHTML = "
"+document.getElementById("formulario_enviar_erro").innerHTML+"
"; } calcula_tamanho(); } function seta_comentario(id){ if(document.getElementById('formulario_comentarios_resposta1')){ document.getElementById('var').value=id; } } //##################################################### // Início do código de Aumentar/ Diminuir a letra // Para usar coloque o comando: "javascript:mudaTamanho('tag_ou_id_alvo', -1);" para diminuir // e o comando "javascript:mudaTamanho('tag_ou_id_alvo', +1);" para aumentar var tagAlvo = new Array('p'); //pega todas as tags p// // Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small... var tamanhos = new Array( '9px','10px','11px','12px','13px','14px','15px','16px','17px' ); var tamanhoInicial = 6; // TITULO-> Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small ... var tamanhos_titulo = new Array( '15px','16px','17px','18px','19px','20px' ); var tamanhoInicial_titulo = 4; function mudaTamanho( idAlvo,acao ){ if (!document.getElementById) return var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo; var selecionados_titulo = null,tamanho_titulo = tamanhoInicial_titulo; tamanho += acao; if ( tamanho < 0 ) tamanho = 0; if ( tamanho > 8 ) tamanho = 8; tamanhoInicial = tamanho; tamanho_titulo += acao; if ( tamanho_titulo < 0 ) tamanho_titulo = 0; if ( tamanho_titulo > 5 ) tamanho_titulo = 5; tamanhoInicial_titulo = tamanho_titulo; if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ]; if ( !( selecionados_titulo = document.getElementById( 'topo3_comboArtigosDestaque' ) ) ) selecionados_titulo = document.getElementsByTagName( 'topo3_comboArtigosDestaque' )[ 0 ]; selecionados.style.fontSize = tamanhos[ tamanho ]; selecionados_titulo.style.fontSize = tamanhos_titulo[ tamanho_titulo ]; for ( i = 0; i < tagAlvo.length; i++ ){ tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] ); for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ]; } calcula_tamanho(); if(acao=='-1'){ajusta_tamanho();calcula_tamanho();} } //######################################################################