
22/01/2002, 08:54
|
 | Colaborador | | Fecha de Ingreso: diciembre-2001 Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 2 meses Puntos: 38 | |
Re: frames con javascript Revisa este ejemplo a ver si te sirve:
<html>
<head>
</head>
<frameset rows="50%,*">
<frame name="frame1" src="Frame1.htm">
<frame name="frame2" src="Frame2.htm">
</frameset>
</html>
Código correspondiente a Frame1.htm:
<html>
<head>
</head>
<body>
1<br><br><br><br><br> ;<br>
2<br><br><br><br><br> ;<br>
3<br><br><br><br><br> ;<br>
4<br><br><br><br><br> ;<br>
5<br><br><br><br><br> ;<br>
6<br><br><br><br><br> ;<br>
7<br><br><br><br><br> ;<br>
8<br><br><br><br><br> ;<br>
9<br><br><br><br><br> ;<br>
</body>
</html>
Código correspondiente a Frame2.htm:
<html>
<head>
<SCRIPT language="javascript">
function goUp(){
parent.frame1.scrollBy(0, -100);
}
function goDn(){
parent.frame1.scrollBy(0, 100);
}
</SCRIPT>
</head>
<body>
<button onclick="goUp()">Scroll Up</button>
<button onclick="goDn()">Scroll Down</button>
</body>
</html> |