Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

ventanita emergente

Estas en el tema de ventanita emergente en el foro de Sistemas de gestión de contenidos en Foros del Web. kiero que al darle click a un enlace se abra una ventana emergente donde pondre mi reprocutor.. que html se usaria?...
  #1 (permalink)  
Antiguo 25/06/2008, 22:59
Avatar de serra00  
Fecha de Ingreso: abril-2007
Mensajes: 176
Antigüedad: 17 años
Puntos: 0
ventanita emergente

kiero que al darle click a un enlace se abra una ventana emergente donde pondre mi reprocutor.. que html se usaria?
  #2 (permalink)  
Antiguo 26/06/2008, 00:59
 
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
  #3 (permalink)  
Antiguo 26/06/2008, 16:46
Avatar de serra00  
Fecha de Ingreso: abril-2007
Mensajes: 176
Antigüedad: 17 años
Puntos: 0
Respuesta: ventanita emergente

muchas gracias la probare y edito a ver que onda
  #4 (permalink)  
Antiguo 27/06/2008, 21:53
Avatar de serra00  
Fecha de Ingreso: abril-2007
Mensajes: 176
Antigüedad: 17 años
Puntos: 0
Respuesta: ventanita emergente

no me anda puse asi..

Código:
function abrirReproductor() {
	var w = 450; // 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 = "http://www.animegolem.com.ar/foro/xeon.htm"; // 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)
}
<html>
<head>
<title>Xeon vbMp3 Player</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
	background-color: #ffffff;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript" src="flashobject.js"></script>
</head>

<body>
<div align="center">
<!--url's used in the movie-->
<a href="http://www.digitalport.co.uk"></a>
<!--text used in the movie-->
<!-- Copyright of Syrus XL Media 2006 -->
<!-- saved from url=(0013)about:internet -->
<div id="xeon">
Warning!!! To view the Xeon vbMp3 player system enable JavaScript and Flash! 
</div>
      <script type="text/javascript">
   var fo = new FlashObject("xeon_vbmp3player.swf", "xeon", "450", "400", "8,0,0,0", "#ffffff");
   fo.addParam("quality", "high");
   fo.write("xeon");
</script>
</div>
</body>
</html>
y el enlace

Código:
<a href="javascript:abrirReproductor();">Reproductor</a>
  #5 (permalink)  
Antiguo 27/06/2008, 22:08
Avatar de serra00  
Fecha de Ingreso: abril-2007
Mensajes: 176
Antigüedad: 17 años
Puntos: 0
Respuesta: ventanita emergente

a ver yo kiero que al darle click se abra una venta con el temaño justo de este archivo http://www.animegolem.com.ar/foro/xeon.htm
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 01:11.