Foros del Web » Programando para Internet » Javascript »

Ventanas Moviles

Estas en el tema de Ventanas Moviles en el foro de Javascript en Foros del Web. Buenas tengo un problema y no se como resolverlo en este html .. . tengo esta pag @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código HTML: Ver original <!DOCTYPE html> ...
  #1 (permalink)  
Antiguo 26/07/2013, 13:39
 
Fecha de Ingreso: septiembre-2012
Mensajes: 53
Antigüedad: 11 años, 7 meses
Puntos: 0
Ventanas Moviles

Buenas tengo un problema y no se como resolverlo en este html .. . tengo esta pag
Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  3.     <title>Creating a modal window with HTML5 &amp; CSS3</title>
  4.    
  5.     <style>
  6.     .modalDialog {
  7.         position: fixed;
  8.         font-family: Arial, Helvetica, sans-serif;
  9.         top: 0;
  10.         right: 0;
  11.         bottom: 0;
  12.         left: 0;
  13.         background: rgba(0,0,0,0.8);
  14.         z-index: 99999;
  15.         opacity:0;
  16.         -webkit-transition: opacity 400ms ease-in;
  17.         -moz-transition: opacity 400ms ease-in;
  18.         transition: opacity 400ms ease-in;
  19.         pointer-events: none;
  20.     }
  21.  
  22.     .modalDialog:target {
  23.         opacity:1;
  24.         pointer-events: auto;
  25.     }
  26.  
  27.     .modalDialog > div {
  28.         width: 400px;
  29.         position: relative;
  30.         margin: 10% auto;
  31.         padding: 5px 20px 13px 20px;
  32.         border-radius: 10px;
  33.         background: #fff;
  34.         background: -moz-linear-gradient(#fff, #999);
  35.         background: -webkit-linear-gradient(#fff, #999);
  36.         background: -o-linear-gradient(#fff, #999);
  37.     }
  38.  
  39.     .close {
  40.         background: #606061;
  41.         color: #FFFFFF;
  42.         line-height: 25px;
  43.         position: absolute;
  44.         right: -12px;
  45.         text-align: center;
  46.         top: -10px;
  47.         width: 24px;
  48.         text-decoration: none;
  49.         font-weight: bold;
  50.         -webkit-border-radius: 12px;
  51.         -moz-border-radius: 12px;
  52.         border-radius: 12px;
  53.         -moz-box-shadow: 1px 1px 3px #000;
  54.         -webkit-box-shadow: 1px 1px 3px #000;
  55.         box-shadow: 1px 1px 3px #000;
  56.     }
  57.  
  58.     .close:hover { background: #00d9ff; }
  59.     </style>
  60. </head>
  61.  
  62.  
  63. <a href="#openModal">Click</a>
  64.  
  65. <div id="openModal" class="modalDialog">
  66.     <div>
  67.         <a href="#close" title="Close" class="close">X</a>
  68.         <h2>ventana</h2>
  69.         <p>This is a sample modal box that can be created using the powers of CSS3.</p>
  70.         <p>You could do a lot of things here like have a pop-up ad that shows
  71. when your website loads, or create a login/register form for users.</p>
  72.     </div>
  73. </div>
  74.  
  75.  
  76. </body></html>

cuando le das click ella abre un ventana. . .

Ahora como podría hacer que esa ventana se mueva por todo el navegador arrastrándola con el mouses y que no este estática en un solo sitio . ... si alguien sabe o me puede ayudar a modificar este html gracias...
  #2 (permalink)  
Antiguo 28/07/2013, 14:18
Avatar de Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Ventanas Moviles

Sólo con HTML no es posible, requieres Javascript. Ya reporté tu tema para que lo muevan al foro correspondiente.
__________________
- León, Guanajuato
- GV-Foto

Etiquetas: css, html, html5, moviles, todo, type, ventanas
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:50.