Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/05/2009, 09:16
Betina232022
 
Fecha de Ingreso: enero-2008
Mensajes: 366
Antigüedad: 17 años
Puntos: 3
Respuesta: scroll de una página

Hola gracias por contestar, este es un ejemplo de lo que quiero hacer, si visualizas la página maximizada se ve bien el div pero si cambias el tamaño y bajas la barra de desplazamiento para poder ver todo el div nunca llega al final de la página.

Código html:
Ver original
  1.  
  2.  
  3. </HEAD>
  4. <Body onload="setVariables(); checkLocation()" bdcolor="#fffff" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
  5.  
  6.  
  7.  
  8. <!--Tabla Principal-->
  9. <Table border="0" bgcolor="#eff3f8" width="96%" cellspacing="0" cellpadding="0" align="center">
  10. <tr><td width="100%" bgcolor="ffffff" align=middle>
  11.  
  12.  
  13.  
  14.  
  15. <FORM name='ValidForms' METHOD=POST ACTION="/cgi-win/bdieintsi.exe/Consultar">
  16.  
  17. switch(screen.availWidth){
  18. case 800:
  19.  document.write("<div id='object3' style='position:absolute;visibility:show;display:none;left:500px;top:108px;z-index:2'>")
  20.  break
  21. case 1024:
  22.  document.write("<div id='object3' style='position:absolute;visibility:show;display:none;left:720px;top:106px;z-index:2'>")
  23.  break
  24. case 1152:
  25.  document.write("<div id='object3' style='position:absolute;visibility:show;display:none;left:850px;top:108px;z-index:2'>")
  26.  break
  27. case 1280:
  28.  document.write("<div id='object3' style='position:absolute;visibility:show;display:none;left:960px;top:108px;z-index:2'>")
  29.  break
  30. }
  31. <Table width="210" bgcolor="#ffffe1" border="1" frame="box" rules="none" bordercolordark="#000000" bordercolorlight="#ffffe1" cellpadding="5" cellspacing="0">
  32.  <tr valign=top align=middle>
  33.   <td widht=90%><font color=#333399><b>&nbsp;Herramienta disponible dentro de </font><font color=#800000>Opciones de Consulta&nbsp;</font></td>
  34.   <td widht=10% align=right><img style='cursor:hand;cursor:pointer' name='Ocultar' src='/bdieSI/ICONOS/cierraOpc1.gif' border=0 ALIGN=top alt='Cierra mensaje' onclick="CierraSMV()"></td>
  35.  </tr>
  36. </div>
  37. function setVariables() {
  38.  if (navigator.appName == "Netscape") {
  39.   v=".top=";
  40.   dS="document.";
  41.   sD="";
  42.   y="window.pageYOffset";
  43.  }
  44.  else {
  45.   v=".pixelTop=";
  46.   dS="";
  47.   sD=".style";
  48.   y="document.body.scrollTop";
  49.  }
  50. }
  51. function checkLocation() {
  52.  object="object1";
  53.  objects="object2";
  54.  yy=eval(y)+ 185;
  55.  zz=eval(y)+ 160;
  56.  eval(document.getElementById(object).style.top=yy);
  57.  eval(document.getElementById(objects).style.top=zz);
  58.  setTimeout("checkLocation()",10);
  59. }
  60.  
  61. switch(screen.availWidth){
  62. case 800:
  63.  document.write("<div id='object2' style='position:absolute;visibility:show;left:500px;top:40px;z-index:2'>")
  64.  break
  65. case 1024:
  66.  document.write("<div id='object2' style='position:absolute;visibility:show;left:700px;top:69px;z-index:2'>")
  67.  break
  68. case 1152:
  69.  document.write("<div id='object2' style='position:absolute;visibility:show;left:820px;top:69px;z-index:2'>")
  70.  break2
  71. case 1280:
  72.  document.write("<div id='object2' style='position:absolute;visibility:show;left:920px;top:69px;z-index:2'>")
  73.  break
  74. }
  75.  
  76. </div>
  77. switch(screen.availWidth){
  78. case 800:
  79.  document.write("<div id='object1' style='position:absolute;visibility:show;left:500px;top:69px;z-index:2'>")
  80.  break
  81. case 1024:
  82.  document.write("<div id='object1' style='position:absolute;visibility:show;left:700px;top:90px;z-index:2'>")
  83.  break
  84. case 1152:
  85.  document.write("<div id='object1' style='position:absolute;visibility:show;left:820px;top:69px;z-index:2'>")
  86.  break
  87. case 1280:
  88.  document.write("<div id='object1' style='position:absolute;visibility:show;left:920px;top:69px;z-index:2'>")
  89.  break
  90. }
  91. <Table width="280" bgcolor="#E9F4FC" border="1" frame="box" rules="none" bordercolordark="#c0d8e0" bordercolorlight="#c0d8e0" cellpadding="0" cellspacing="0">
  92. <tr valign=middle align=middle><td height=15>
  93. <table border="0" cellpadding="0" cellspacing="8"><tr>
  94. <td><INPUT TYPE="image" ></td>
  95. <td><a href="#"><img border=0></a></td>
  96. <td><a href="#"><img border=0></a></td>
  97. </table></td></tr>
  98. <tr><td>
  99. <Table border="1"  width="100%" cellpadding="1" cellspacing="2">
  100. <tr><td><table align="left" border="0" cellpadding="0" cellspacing="1">
  101. <tr><td colspan="12"><p >&nbsp;Algo</td></tr>
  102. <tr><td width="8">&nbsp;</td>
  103. <td><Input type="radio" border="0" checked></td><td width="4"></td><td><p >1</td><td width="4"></td>
  104. <td><Input type="radio" border="0" checked></td><td width="4"></td><td><p >2</td><td width="4"></td>
  105. <td><Input type="radio" border="0" checked></td><td width="4"></td><td><p >3</td>
  106. </tr>
  107. <tr><td width=2></td>
  108. <td><Input type="radio"  border="0"></td><td width="4"></td><td><p >1</td><td width="4"></td>
  109. <td><Input type="radio"  border="0"></td><td width="4"></td><td><p >2</td><td width="4"></td>
  110. <td><Input type="radio"  border="0"></td><td width="4"></td><td><p >3</td>
  111. </tr>
  112. </table></td></tr>
  113. <INPUT TYPE=HIDDEN NAME="Orden" VALUE="">
  114. <tr><td><table align="left" border="0" cellpadding="0" cellspacing="1">
  115. <tr><td colspan="6"></tr>
  116. <tr><td width="8">&nbsp;</td><td><p class="opConsulta2">Desde:&nbsp;
  117. <SELECT NAME='AAMin'>
  118. <OPTION value='2001' SELECTED>1
  119. <OPTION value='2002'>1
  120. <OPTION value='2003'>1
  121. <OPTION value='2004'>1
  122. <OPTION value='2005'>1
  123. <OPTION value='2006'>1
  124. <OPTION value='2007'>1
  125. <OPTION value='2008'>1
  126. <OPTION value='2009'>1
  127. </SELECT></td>
  128. <td width=8></td>
  129. <td><p class='opConsulta2'>Hasta:&nbsp;
  130. <SELECT NAME='AAMax'>1
  131. <OPTION value='2001'>1
  132. <OPTION value='2002'>1
  133. <OPTION value='2003'>1
  134. <OPTION value='2004'>1
  135. <OPTION value='2005'>1
  136. <OPTION value='2006'>1
  137. <OPTION value='2007'>1
  138. <OPTION value='2008'>1
  139. <OPTION value='2009' SELECTED>1
  140. </SELECT></td></tr>
  141. </table></td></tr>
  142. <tr><td><table align="left" border="0" cellpadding="0" cellspacing="1">
  143. <tr><td colspan="6"></td></tr>
  144. <tr valign=top><td width="8">&nbsp;</td><td width="4"></td></tr>
  145. <tr><td width=2></td>
  146. <td width="4"><INPUT TYPE=CHECKBOX border=0></td>
  147. <td width="20"><p >&nbsp;G</td><td>&nbsp;</td>
  148. <td><SELECT NAME='TipoGraf'>
  149. <OPTION value='1'>1
  150. <OPTION value='2'>2
  151. <OPTION value='3'>3
  152. <OPTION value='4'>4
  153. <OPTION value='5'>5
  154. <OPTION value='6'>6
  155. <OPTION value='7'>7
  156. <OPTION value='8'>8
  157. <OPTION value='9'>9
  158. <OPTION value='10'>10
  159. <OPTION value='11'>11
  160. <OPTION value='12'>12
  161. <OPTION value='13'>13
  162. <OPTION value='14'>14
  163. </SELECT></td></tr>
  164. <tr>
  165. <td>&nbsp;</td>
  166. <td><INPUT TYPE="CHECKBOX" NAME="E"></td>
  167. <td width="20"><p >&nbsp;E</td><td>&nbsp;</td>
  168. <td><SELECT NAME='TipoExp'>
  169. <OPTION value='2'>S
  170. <OPTION value='1'>Y
  171. <OPTION value='3'>T
  172. </SELECT></td></tr>
  173. <tr><td width=4>&nbsp;</td>
  174. <td width="5"><INPUT TYPE=CHECKBOX NAME="E"></td>
  175. <td width="20"><p >&nbsp;Es</td></tr>
  176. </td></tr>
  177. </td></tr>
  178. <tr bgcolor="#c0d8e0" valign="middle"><td height=20></td></tr>
  179. <tr valign=middle align=middle><td height=20>
  180. <table border="0" cellpadding="0" cellspacing="2"><tr>
  181. <td></td>
  182. <td></td>
  183. <td valign=bottom></td>
  184. <td></td>
  185. </tr>
  186. <tr valign=middle><td colspan=4 height=20 align=middle></td></tr>
  187. </table></td></tr>
  188.  
  189.  
  190. </div>
  191.  
  192. </FORM>
  193. </tr></td></table>
  194. </tr></td></table>
  195.  
  196. </body>
  197. </html>

Última edición por Betina232022; 06/05/2009 a las 10:16