Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/08/2011, 15:24
sAnto0s
 
Fecha de Ingreso: mayo-2011
Mensajes: 18
Antigüedad: 13 años, 8 meses
Puntos: 3
Respuesta: IFRAME "heigth" autoajustable a resolucion de pantalla

Hola no tengo mucha experiencia pero espero y te ayude... te dejo algo



Código:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="redirect.aspx.vb" Inherits="redirect" %>

<!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 runat="server">
    <title>Página sin título</title>
    <script language="javascript" type="text/javascript">
        function redirect(){ 
          var x = document.form1.TextBox1.value; 
          if (x=='Principal.htm');
          {
            if (screen.width <= 800){
               location.href='Principal2.htm';
               //location.href='Maintenance.aspx';
            } else {   
               location.href='Principal.htm';
               //location.href='Maintenance.aspx';
            }
          }
        }//function
    </script> 
</head>
<body onload="redirect();">
    <form id="form1" runat="server">
        <asp:TextBox ID="TextBox1" runat="server" BackColor="#FECD80" BorderColor="#FECD80" BorderStyle="None" ForeColor="#FECD80" Font-Bold="True"></asp:TextBox>
    </form>
</body>
</html>


Donde el principal es que contiene los frames, asi que lo que harias es tener una para cada resolución en estos darle el tamaño de tus frames.