Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/06/2008, 00:59
JoseLAKALePet
 
Fecha de Ingreso: junio-2008
Ubicación: Valladolid
Mensajes: 38
Antigüedad: 15 años, 10 meses
Puntos: 3
Respuesta: ventanita emergente

Hola serra,

Podrías usar la siguiente función javascript:

Código:
function abrirReproductor() {
	var w = 680; // ancho de la ventana
	var h = 400; // alto de la ventana
	var scroll = "yes"; // admite scroll: "yes" o "no"
	var leftPosition = (screen.width) ? (screen.width-w)/2 : 0; // centrado verticalmente
	var topPosition = (screen.height) ? (screen.height-h)/2 : 0; // centrado horizontalmente
	var page = "../web/reproductor.html"; // archivo que contiene el reproductor
	var settings='height='+h+',width='+w+',top='+topPosition+',left='+leftPosition+',scrollbars='+scroll+',resize=no'
	var ventana = window.open(page,'',settings)
}
Para invocarla:

Código:
<a href="javascript:abrirReproductor();">texto del enlace</a>
Saludos!!

Última edición por JoseLAKALePet; 26/06/2008 a las 01:01 Razón: incompleto