Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/12/2004, 03:46
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 5 meses
Puntos: 61
Mira a ver si esto te sirve:

Código HTML:
<html>
<head>
	<title>Untitled</title>
	<script>
	//Ventanita tipo Messenger
	//Por KarlanKas
	//www.forosdelweb.com
	
	var ancho=screen.width;
	var alto=screen.availHeight;
	var ventana;
	var anchoVentanita=200;
	var altoVentanita=150;
	function cerrar(){if(ventana &&!ventana.closed){ventana.close()}}
	function ventanita(url){
	ventana=window.open(url,'ventanita','width='+anchoVentanita+',height=0,top='+alto+',width='+(ancho-anchoVentanita-10));
	desplegar(true);
	}
	
	function desplegar(cambio){
		if(cambio){
			inicio=0;
			fin=altoVentanita;
			incremento=1;
		}
		else{
			inicio=altoVentanita;
			fin=0;
			incremento=-1;
		}
		for(a=inicio;a!=fin;a+=incremento){
			ventana.focus();
			ventana.resizeTo(anchoVentanita,a);
			ventana.moveTo((ancho-anchoVentanita-10),(alto-a));
		}
	
		if(cambio){
			setTimeout('desplegar(false)',2000)
		}
		else{ventana.close();}
		
	}
	</script>
</head>

<body onunload="cerrar()">
<a href="$··" onclick="ventanita('about:blank');return false;">Abrir ventanita</a>


</body>
</html> 
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.