Re: [OT] Propiedades de una ventana
| From: | Webmaster Comercio Electrónico Worldsites | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [OT] Propiedades de una ventana | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-24950@lists.php.net to get a copy of this message | ||
Puedes consultar: http://www.xs4all.nl/~ppk/js/winprop.html
sitio completo: http://www.xs4all.nl/~ppk/js/index.html
moveBy(x,y) Move the window by x,y pixels to the right and bottom
moveTo(x,y) Move the upper left corner of the window to coordinates x,y
resizeBy(x,y) Resize the window by moving the lower right corner by x,y pixels.
Note that if you want to resize the entire window from a frame, you need to do parent.window.resizeBy
resizeTo(x,y) Resize the window to x by y pixels. Upper left corner stays where it is.
Note that if you want to resize the entire window from a frame, you need to do parent.window.resizeTo
Browser difference: Explorer and Netscape 6 takes x and y as the dimensions of the entire page, while Netscape 4 sees them as the dimensions of the inner window (without toolbars, location bars etc.). The example script below works around this browser incompatibility by subtracting the width and height of the toolbars and stuff (outerHeight - innerHeight) from the desired width and height.
scroll(x,y) Scroll the page to position x,y.
Note that this method is deprecated, you're supposed to use scrollTo. It also works in Netscape 3.
scrollBy(x,y) Scroll the page by x pixels to the left and y pixels down.
scrollTo(x,y) Scroll the page to position x,y.
Moros Claramunt, David wrote:
Hola y buenos días: Alguien sabe como cambiar las ropiedades de una ventana ya abierta, por ejemplo tener un link que al pulsarlo se cambien las propiedades de dicha ventana, como por ejemplo: Tamaño Posicion Ocultar barra de menu y de localizacion etc. Gracias ---------------------------------------------- David Moros Claramunt ---------------------------------------------- División TSN Área de Telecomunicaciones tecsidel C/ Enrique Jardiel Poncela, 6 28016 Madrid Tel: (+34) 91 353 08 36 Fax: (+34) 91 353 24 78 <mailto:david.moros@mad.tecsidel.es> www.tecsidel.es --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ via news: news://news.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ via news: news://news.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com-- ----------------------------------------------- Gerardo Morales Webmaster Comercio Electrónico Worldsites Tel. 5525-8332 Fax. 5525-8371