07/09/2005, 01:36
|
| Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Igual esto te ayuda a entender: Código PHP: <html>
<head>
<title>Untitled</title>
<style>
input{width:20px;height:20px;}
</style>
<script>
ventana = window.open('hola.html' , 'ventana' , 'width=300,height=300,left=300,top=300');
function mover(x,y){
ventana.focus();
ventana.moveBy(x*10,y*10);
}
</script>
</head>
<body onload="self.resizeTo(200,300);self.moveTo(0,0)">
<table>
<tr>
<td></td>
<td><input type="button" value="^" onclick="mover(0,-1)"></td>
<td></td>
</tr>
<tr>
<td><input type="button" value="<" onclick="mover(-1,0)"></td>
<td></td>
<td><input type="button" value=">" onclick="mover(1,0)"></td>
</tr>
<tr>
<td></td>
<td><input type="button" value="v" onclick="mover(0,1)"></td>
<td></td>
</tr>
</table>
</body>
</html>
Un saludo!
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |