desplaza la imagen de la pelota de tenis hasta la posicion indicada por las coordenadas de las cajas
Publicado por debugger (1 intervención) el 25/11/2019 21:23:22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Ejercicio4 </title>
<style type="text/css">
</style>
<script language="javascript" type="text/javascript">
function fdesplazar(){
}
</script>
</head>
</html>
<body>
<h2>Desplazar pelota de tenis</h2>
<label for="cajatop">TOP en px:</label><input type="text" id="cajatop"><br>
<label for="cajaleft">LEFT en px:</label><input type="text" id="cajaleft"><br>
<input type="button" value="MOVER" onClick="fdesplazar()">
<div id="cajapelota"><img src="imagenes/pelota.png"></div>
</body>
Valora esta pregunta
0