Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/11/2011, 02:36
Avatar de jor_0203
jor_0203
 
Fecha de Ingreso: octubre-2011
Ubicación: mexico
Mensajes: 760
Antigüedad: 13 años, 4 meses
Puntos: 8
como pudo mover un div con el maus

como pudo mover un div con el maus, es decir cuando le doy un click a un vinculo
hago que salga un div, pero como las dimensiones de las pantallas son diferentes
estoy tratando de mover ese div con el maus
mil gracias
encontré un link, pero se me hace muy denso el código
no tienen otro un poquito más fácil para un novato
http://www.disegnocentell.com.ar/notas2.php?id=236


Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sin t&iacute;tulo</title>
  6. <script type="text/javascript">
  7. function mostrar(){
  8. document.getElementById("d").style.display='block';
  9. }
  10. </script>
  11. </head>
  12. <body>
  13. <a href="#" onclick="mostrar()">mostrar ventana</a>
  14. <div id="d" style=" display: none; width:170px; height:90px; background-color:#FFFF00" >
  15. llena tus datos
  16. <form action="" method="get">
  17. <input name="" type="text" />
  18. <input name="" value="inserta"  type="button" />
  19. </form>
  20. </div>
  21. </body>
  22. </html>

Última edición por jor_0203; 29/11/2011 a las 02:42