Redimensionar com Frame

2 respostas
P

Pessoal,

tenho um site em frame, só que quando eu altero o tamanho da tela, até apertando o botão "Restaurar Tamanho" (do lado do X), a tela diminui e um frame fica por cima de outro...

Alguém poderia me ajudar?

frame index (principal):

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html>
	<head>
		<title> Principal </title>
		<script type="text/javascript" src="http://updateyourbrowser.net/asn.js"> </script>
		<meta name="description" content="Tela inicial do PGPM">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	 
	</head>
	
	<style>
		html{overflow-y:hidden;overflow-x:hidden;}
	</style>
	 
    <frameset rows="8%,80%,4.3%" border="1" frameborder="1">
        <frame name="head" src="header.jsp" noresize="no">
        <frameset cols="17%,*"border="0" frameborder="0">
        	<frame name="menu" src="menu.jsp" noresize="no"></frame>
        	<frame name="principal" src="home.jsp" noresize="no"></frame>
    	</frameset>
        <frame name="foot" src="foot.jsp" noresize="no">
    </frameset>

</html>

Frame header:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
	<head>
		<title> Cabe&ccedil;alho </title>
		<meta name="description" content="Cabe&ccedil;alho do PGPM">
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	</head>
	<style type="text/css">
		html{overflow-y:hidden;overflow-x:hidden;}
		body {
			background-color: #00263A;
		}
	
		.titulo {padding: 0px  0 0px  0px; top: -10px; font-size: 16px; font-family: arial, helvetica, serif; color: #FFFFFF;}
		.tela {position: fixed; left: 140px; top: 17px; font-size: 20px; font-family: arial, helvetica, serif; color: #FFFFFF;}
	</style>
	
	<body>
		<div class="titulo"> <img src="img/logoPorto.png" border="0" width="123"> </div>
		<div class="tela"><b>Plataforma para Gest&atilde;o</b></div>
				
		
	</body>

Frame foot

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
	<head>
		<title> Rodap&eacute; </title>
		<meta name="description" content="Plataforma de Gest&atilde;o">
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	</head>
	<style>

	<!--html{overflow-y:hidden;overflow-x:hidden;}-->

	body {background-color: #00263A;}
	
	.titulo {padding: 0px  0 0px  0px; top: 0px; font-size: 16px; font-family: arial, helvetica, serif; color: #FFFFFF;}
	.tela {position: relative; center: 0px; top: 0px; font-size: 10px; font-family: arial, helvetica, serif; color: #FFFFFF;}
	</style>
	
	<body>
		<!--<div class="titulo"> <img src="logoPorto.png" border="0" width="123"> </div>-->
		<div class="tela">Desenvolvido por PED</div>
				
		
	</body>

E uma das telas que carregam o centro:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
	<head>
		<title> Menu </title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	
		<BASE href="home.html" target="principal">
		<link rel='stylesheet' type='text/css' href='css/buttonMenu.css'>  
	 	<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  		
  		<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
   		<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
	</head>

<style type="text/css">
html{overflow-y:hidden;overflow-x:hidden;}


#conteudo {width:1000px;margin: 0 auto;margin-left:12%}

#comboVeiculo {}

#tituloAba {background:#0094ff;width:100px;height:25px;} 
.titulo {font-weight: bold; color:#FFF; text-align:center; padding-top:4px;}


#box {border:2px solid; border-color:#0094ff;width:700px;}
.box h2 {background:#0094ff;color:white;padding:10px;}
.box p {color:#333;padding:10px;}
.box dataI {color:#333;}
.box dataF {color:#333;}


</style>
	  



	<body>

<div id="conteudo">
		<div>Medi&ccedil;&otilde;es Hist&oacute;ricas</div>
		
		<div id="comboVeiculo">
		<select name="cod_igreja" class="selectbox" style="width:200px;">
    		<option value="0">SELECIONE</option>
      		<c:forEach var="e" items="${estados}">
         		<option value="${e.cod_estado}" <c:if test="${e.cod_estado == param.meuparametrodobanco}">Selected=selected</c:if>  > ${e.nom_estado}</option>
      		</c:forEach>
 		</select>
		
		
		</div>
		
<div>
	<div id="tituloAba">
	    <p class="titulo">Filtros</p> 
	</div>
	<div id="box">

        <div class="datas">	
        	<p>Data Inicial:<input type="text" size="15" maxlength="10" id="dataIni" name="dataIni"/></p>
        	<p>Data Final:<input type="text" size="15" maxlength="10" id="dataFin" name="dataFin"/></p>			 
        </div>	

    </div>    	

<br>
	

    
 
	
</div>
   
</div>
	</body>
</html>

E o Menu

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
	<head>
		<title> Menu </title>
		<BASE href="home.html" target="principal">
		<link rel='stylesheet' type='text/css' href='css/buttonMenu.css'>  
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	
	</head>
	<style>
		html{overflow-y:hidden;overflow-x:hidden;}
	</style>

	<body>
		<a href="perfil.jsp" style="text-decoration:none">
			<div class="btnPerfil">Perfil</div>
		</a>
		<a href="ultimaMedicao.jsp" style="text-decoration:none">
			<div class="btnUltMedicao">&Uacute;ltima Medi&ccedil;&atilde;o</div>
		</a>
		<a href="medicoesHistoricas.jsp" style="text-decoration:none">
			<div class="btnMedHist">Medi&ccedil;&otilde;es Hist&oacute;ricas</div>
		</a>	
	</body>
</html>

2 Respostas

P

Acho que ficou melhor para me ajudarem, coloquei o arquivo… basta abrir a pagina index.html e irão ver o que falo do redimensionar

P

eu fiz assim:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
	<head>
		<title> PGPM - Menu </title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	
		<BASE href="home.html" target="principal">
		<link rel='stylesheet' type='text/css' href='css/buttonMenu.css'>  
		<link rel='stylesheet' type='text/css' href='css/padrao_VisualPED.css'>
		<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  		<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
   		<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
	</head>

<style type="text/css">
html{overflow:auto;}


#conteudo {width:400px;margin: 0 auto;margin-left:12%}

#combo {}

#tituloAba {background:#0094ff;width:100px;height:25px;} 
.titulo {font-weight: bold; color:#FFF; text-align:center; padding-top:4px;}

#box {border:2px solid; border-color:#0094ff;width:700px;}


#posicao {padding:10px; position: relative;margin:0;display: block;} 
.posicao .esquerda {padding:10px; position: relative; float:left;margin:0;display: block;} 
.posicao .direita {padding:10px; position: relative; float:right;margin:0;display: block;} 
.posicao .clear {clear:both;margin:0;padding:0;} 


.ui-datepicker {
	font-size: 12px;
	text-color:red;
}
.ui-datepicker td span, .ui-datepicker td a {
	display: inline-block;
	font-weight: bold;
	text-align: center;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-color:red;
}
.ui-datepicker-calendar .ui-state-default {
	color:#06F;
}
.ui-datepicker-unselectable .ui-state-default {
	background: #f4f4f4;
	color: #b4b3b3;
}


.arrow_box-ca:after, .arrow_box-ca:before {
bottom: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;

}


.ui-datepicker-trigger { 
position: relative; 
top: 4px; 
padding: 3px;
margin:0px;
}

.ui-datepicker-calendar .ui-state-active {
	background: #06F;
	color: #fff;
	text-shadow: 0px 1px 0px #000;
}

.ui-datepicker-calendar .ui-state-hover {
	background: #f7f7f7;
}
</style>


<script LANGUAGE="JavaScript">


function envia_tranca() {
	document.forms['form1'].submit();
	document.forms['form1'].elements['pesquisaRel'].disabled = true;	
}


function CheckAllEquipamento() { 
   for (var i=0;i<document.formAll.elements.length;i++) {
     	var x = document.formAll.elements[i];
     	if (x.name == 'MultiplosDadosMedHist') { 
			x.checked = document.formAll.filtroALL.checked;
		} 
	} 
} 


$(function(){
    $('#dataIni').datepicker({
    	dateFormat: 'dd/mm/yy',
	    dayNames: ['Domingo','Segunda','Ter&#34919;,'Quarta','Quinta','Sexta','S&#10465;do'],
	    dayNamesMin: ['D','S','T','Q','Q','S','S','D'],
	    dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','S&#10407;,'Dom'],
	    monthNames: ['Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
	    monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],
	    nextText: 'Pr&oacute;ximo',
	    prevText: 'Anterior',
		showOtherMonths:true,
        selectOtherMonths: false,
		changeMonth:true,
        changeYear:true,
		showOn:"button",
        buttonImage: "calendar_icon.png",
		buttonImageOnly: true,
    	onSelect: function(dateText, inst) {
	      $("input[name='dataIni']").val(dateText);
	    }
    });
});
			
$(function(){
    $('#dataFin').datepicker({
    	dateFormat: 'dd/mm/yy',
	    dayNames: ['Domingo','Segunda','Ter&#34919;,'Quarta','Quinta','Sexta','S&#10465;do'],
	    dayNamesMin: ['D','S','T','Q','Q','S','S','D'],
	    dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','S&#10407;,'Dom'],
	    monthNames: ['Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
	    monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],
	    nextText: 'Pr&oacute;ximo',
	    prevText: 'Anterior',
		showOtherMonths:true,
        selectOtherMonths: false,
		changeMonth:true,
        changeYear:true,
		showOn:"button",
        buttonImage: "calendar_icon.png",
		buttonImageOnly: true,
    	onSelect: function(dateText, inst) {
	      $("input[name='dataFin']").val(dateText);
	    }
    });
});
			

function dois_pontos(tempo){
      if(event.keyCode<48 || event.keyCode>57){
        event.returnValue=false;}
      if(tempo.value.length==2){
        tempo.value+=":";}
}

function valida_horas(tempo){
  while (tempo.value.length < 5){
      if(tempo.value.length==2 || tempo.value.length==5){
        tempo.value+=":";}
      tempo.value+="0";}

  horario = tempo.value.split(":");
  var horas = horario[0];
  var minutos = horario[1];
if(horas > 24){ //para rel&#948847; de 12 horas altere o valor aqui
  submit.disabled = true;relogio.focus();//fica nome_do_form.submit.disabled caso voc&#43113;nsira um form ali em baixo 
  Break;} 
if(minutos > 59){
  submit.disabled = true;relogio.focus();
  Break;}
  submit.disabled = false;
}




</script>
  		  

<body>
	
   	<form name="formAll" action="ServletConsultaCoordenadas" method="post">
	<input type="hidden" id="msgRetornoCusto" value="<c:out value="${msgRetornoCusto}"/>"/>

<div id="conteudo">
	<div>Medi&ccedil;&otilde;es</div>
		
	<div id="combo">
		<select name="cod_igreja" class="selectbox" style="width:200px;">
    		<option value="0">SELECIONE</option>
      		<c:forEach var="e" items="${estados}">
         		<option value="${e.cod_estado}" <c:if test="${e.cod_estado == param.meuparametrodobanco}">Selected=selected</c:if>  > ${e.nom_estado}</option>
      		</c:forEach>
 		</select>	
	</div>
		
	<div>
		<div id="tituloAba">
		    <p class="titulo">Filtros</p> 
		</div>
		<div id="box">
		<table cellspacing="10" cellpadding="5" align="center">
			<tr align="left">	
				<td width="400px" cellpadding="5">	
					<div class="esquerda">	
						<div>Data Inicial:<input type="text" size="15" maxlength="10" id="dataIni" name="dataIni"/></div>
						<br>
						<div>Hora Inicial:<input type="text" size="15" name="horaIni" maxlength="5" onkeypress="dois_pontos(this)" onBlur="valida_horas(this)"></div>
						<br>
						<div><INPUT TYPE=CHECKBOX id="filtroALL" onclick="CheckAllEquipamento()" name="filtroALL"><label for="filtroALL" class="">&nbsp;Selecionar tudo</label></div>
						<br>
						<div><INPUT TYPE=CHECKBOX id="Inst" VALUE="Inst" name="MultiplosDadosMedHist" class=""><label for="Inst" class="">&nbsp;Instant&acirc;nea</label></div>	
						<div><INPUT TYPE=CHECKBOX id="Md" VALUE="Md" name="MultiplosDadosMedHist" class=""><label for="Md" class="">&nbsp;M&eacute;dia</label></div>
						<br>
						<div><INPUT TYPE=CHECKBOX id="PosAcel" VALUE="PosAcel" name="MultiplosDadosMedHist" class=""><label for="PosAcel" class="">&nbsp;Posi&ccedil;&atilde;o </label></div>
						<div><INPUT TYPE=CHECKBOX id="Rot" VALUE="Rot" name="MultiplosDadosMedHist" class=""><label for="Rot" class="">&nbsp;Rota&ccedil;&atilde;o</label></div>
						<div><INPUT TYPE=CHECKBOX id="RotMax" VALUE="RotMax" name="MultiplosDadosMedHist" class=""><label for="RotMax" class="">&nbsp;Rota&ccedil;&atilde;o M&aacute;xima</label></div>
					</div>	
				</td>
				<td>
					<div class="direita">		
						<div>Data Final:<input type="text" size="15" maxlength="10" id="dataFin" name="dataFin"/></div>
						<br>
						<div>Hora Final:<input type="text" size="15" name="horaFin" maxlength="5" onkeypress="dois_pontos(this)" onBlur="valida_horas(this)"></div>
						<br>
						<div></div>
						<br>
						<div><INPUT TYPE=CHECKBOX id="Nvl" VALUE="Nvl" name="MultiplosDadosMedHist" class=""><label for="Nvl" class="">&nbsp;N&iacute;vel</label></div>
						<div><INPUT TYPE=CHECKBOX id="Efic" VALUE="Efic" name="MultiplosDadosMedHist" class=""><label for="Efic" class="">&nbsp;Efici&ecirc;ncia</label></div>	
						<div><INPUT TYPE=CHECKBOX id="DistPerc" VALUE="DistPerc" name="MultiplosDadosMedHist" class=""><label for="DistPerc" class="">&nbsp;Dist&acirc;ncia</label></div>
						<br>
						<div><INPUT TYPE=CHECKBOX id="Temp" VALUE="Temp" name="MultiplosDadosMedHist" class=""><label for="Temp" class="">&nbsp;Tempo</label></div>
						<div><INPUT TYPE=CHECKBOX id="TempParado" VALUE="TempParado" name="MultiplosDadosMedHist" class=""><label for="TempParado" class="">&nbsp;Tempo Parado</label></div>
						<div><INPUT TYPE=CHECKBOX id="TempFunc" VALUE="TempFunc" name="MultiplosDadosMedHist" class=""><label for="TempFunc" class="">&nbsp;Tempo Funcionamento</label></div>
					</div>
				</td>	
		    	<div class="clear"></div>	
			</tr>
		</table>	
		</div>    	
	</div>

	
	

</div>

</form> 
</body>
</html>
Criado 29 de julho de 2014
Ultima resposta 1 de ago. de 2014
Respostas 2
Participantes 1