Ir para conteúdo
Fórum Script Brasil

kola

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Sobre kola

kola's Achievements

0

Reputação

  1. RESOLVIDO. Obrigado pela ajuda inicial, deu um up pra chegar aqui... segue a solução no código abaixo.. a linha em azul substituiu a linha em cinza. abs <td width="600"><iframe style="position: absolute; top: 228px; width: 588px;" style="position: absolute; top: 25%; margin-top: -250;" id="the_iframe" onLoad="calcHeight();" src="noticias.php" width="600" scrolling="NO" frameborder="no" name="corpo" hspace="0" vspace="0" > </iframe>
  2. Olá pessoa... seguindo a linha do Doug, conseguimos resolver o problema da barra lateral e do redimensionamento do iframe, porém o conteúdo interno do iframe aparece centralizado na vertical, isso quando não há muito conteúdo. Quando o conteúdo preenche todo o espaço ele aparece alinhado no topo. Eu usei a posição absoluta, porém quando eu redimensiono a janela do navegador o conteúdo sobrepõe os menus do site, ou seja, um fram sobrepõe o outro. Alguém tem alguma idéia do próximo passo? Detalhe, fiz com resolução de 1280x1024, se alguém usar outra resolução já terá os frames desorganizados... Se aguém puder dar uma luz... vlw!! ____________________________________________________________________ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Chiara Racing - Escuderia Chiara</title> &lt;script language="JavaScript"> <!-- function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow.document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height=the_height; } //--> </script> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #000000; } --> </style></head> <table width="1020" border="0" align="center" cellpadding="0" cellspacing="5"> <tr> <td colspan="3"><iframe src="topo.php" width="1020" height="210" frameborder="no" scrolling="no"></iframe></td> </tr> <tr> <td width="210"><iframe src="menu_esquerdo.php" width="210" height="800" frameborder="no" scrolling="no" name="menu_esquerdo" hspace="0" vspace="0"></iframe></td> <td width="600"><iframe style="position: absolute; top: 25%; margin-top: -250;" id="the_iframe" onLoad="calcHeight();" src="noticias.php" width="600" scrolling="NO" frameborder="no" name="corpo" hspace="0" vspace="0" > </iframe> <td width="210"><iframe src="menu_direito.php" width="210" height="800" frameborder="no" scrolling="no" name="menu_direito" hspace="0" vspace="0"></iframe></td> </tr> </table> </html>
×
×
  • Criar Novo...