Ver Mensaje Individual
  #13 (permalink)  
Antiguo 17/08/2010, 13:52
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 17 años, 7 meses
Puntos: 1567
Respuesta: filas de una tabla como enlaces

skyz:

mira el código que sigue, el evento onclick abre la ventana y la centra en la pantalla, crea tambien una página de nombre flash.html con cualquier contenido para verificar el funcionamiento. 400 y 400 son elñ ancho y alto respectivamente.

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sin t&iacute;tulo</title>
  6.  
  7. <script type="text/javascript">
  8. var win= null;
  9. function VentanaCentrada(pagina,w,h,nombre){
  10. var winleft = (screen.width-w)/2;
  11. var wintop = (screen.height-h)/2;
  12. caracteristicas='height='+h+',width='+w+',top='+wintop+',left='+winleft+',scrollbars=no,toolbar=no,resizable=yes'
  13. win=window.open(pagina,nombre,caracteristicas)
  14. if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
  15. }
  16. // -->
  17. </head>
  18. <a href="flash.html" onclick="VentanaCentrada('flash.html','400','400','Popupuno');return false;" > Abrir Popup </a>
  19. </body>
  20. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.