Foros del Web » Creando para Internet » HTML »

ventana con tamaño determinado

Estas en el tema de ventana con tamaño determinado en el foro de HTML en Foros del Web. Hay alguna manera de especificar el tamaño de una ventana, sin llamarla a traves de otra. Es decir que en el momento que se cargue, ...
  #1 (permalink)  
Antiguo 30/04/2002, 05:14
 
Fecha de Ingreso: diciembre-2001
Mensajes: 11
Antigüedad: 22 años, 3 meses
Puntos: 0
ventana con tamaño determinado

Hay alguna manera de especificar el tamaño de una ventana, sin llamarla a traves de otra.

Es decir que en el momento que se cargue, aparezca en el tamaño querido.
  #2 (permalink)  
Antiguo 30/04/2002, 07:28
bet
 
Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 23 años, 2 meses
Puntos: 0
Re: ventana con tamaño determinado

Algo así te sirve?

Código:
<html>
<head>
<title> New Document </title>
<script language="JavaScript">
<!--
function movete(){
window.moveTo(0,0);
top.window.resizeTo(200,200);
}
//-->
</script></head>

<body bgcolor="#FFFFFF" onLoad="movete();">

</body>
</html>
<hr noshade size=1><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE]
  #3 (permalink)  
Antiguo 30/04/2002, 09:23
Avatar de Museki  
Fecha de Ingreso: diciembre-2001
Ubicación: En algún lugar de la España...
Mensajes: 268
Antigüedad: 22 años, 3 meses
Puntos: 0
Re: ventana con tamaño determinado

Falta código por poner...
A ver hay que hacerlo en dos partes...

-Paso uno: [B]Copia este código en las etiquetas &lt;head&gt; y &lt;/head&gt;[b]

Cita:
&lt;HEAD&gt;

&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;

&lt;!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl +',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) &gt;= 4) { win.window.focus(); }
}
// End --&gt;
&lt;/script&gt;
&lt;/HEAD&gt;
-Paso dos: Copia este código en las etiquetas de &lt;body&gt; y &lt;/body&gt;

Cita:
&lt;BODY&gt;

&lt;!-- Put the URL inside the link's href=&quot;...&quot; section, then carefully --&gt;
&lt;!-- change 'name' to a name for your popup window. The last three --&gt;
&lt;!-- items represent the popup window width, height, and scrollbars. --&gt;

&lt;a href=&quot;http://www.yahoo.com/&quot; onclick=&quot;NewWindow(this.href,'name','400','40 0','yes');return false;&quot;&gt;Popup Yahoo.com&lt;/a&gt;

&lt;p&gt;&lt;center&gt;
&lt;font face=&quot;arial, helvetica&quot; size=&quot;-2&quot;&gt;Free JavaScripts provided&lt;br&gt;
by &lt;a href=&quot;http://javascriptsource.com&quot;&gt;The JavaScript Source&lt;/a&gt;&lt;/font&gt;
&lt;/center&gt;&lt;p&gt;

&lt;!-- Script Size: 1.12 KB --&gt;
&lt;/body&gt;
Nada, espero haberte ayudado...

Museki dixit :cantar:

<a href='ir.asp?http://www.lostemplarios.cjb.net' target='_blank'>www.lostemplarios.cjb.net...</a>
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 14:46.