Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/05/2002, 22:45
Pekis53
 
Fecha de Ingreso: mayo-2002
Mensajes: 51
Antigüedad: 22 años
Puntos: 0
Script defectuoso

Hola.. tengo problemas con este script que no me quiere abrir como es debido, resulta que lo que quiero es muy simple solo que abra con el efecto que tiene pero una sola ventana y sin barra de heramientas ni nada y si me pueden ayudar a cambiar el boton por algo mas bonito se los agradezco:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language=JavaScript>
function clickIE() {
if (document.all) {
return false;
}
}
function clickNS(e) {
if (document.layers||(document.getElementById&&am p;!document.all)) {
if (e.which==2||e.which==3) {
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}
else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
</script>
<script LANGUAGE="JavaScript">
open("aviso.htm", "vaviso","status=no, directories=no, toolbar=no")

var window_width = 400;
var window_height = 400;
var h = 50;
firstrun();

function firstrun() {
self.focus();
if(h < window_height) {
h = h + 5;
setTimeout ("secondrun(h)",50);
}
}
function secondrun(h) {
self.resizeTo (window_width,h);
firstrun()
}
</script>
<body bgcolor="#F5D8F4" text="#000000" link="#000099" vlink="#660000" alink="#FF0000">
<p align="center"><img src="MVC-854F.jpg" width="180" height="152"></p>
<FORM>
<div align="center">
<input type="button" Value="Cerrar Ventana" ONCLICK="window.close('YOUR LINK GOES HERE')">
</div>
</FORM>

</body>
</html>