Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/01/2002, 01:12
Avatar de Curiosa
Curiosa
 
Fecha de Ingreso: enero-2002
Ubicación: En el mas allá...
Mensajes: 178
Antigüedad: 22 años, 4 meses
Puntos: 0
A Mi Resolución ...

<BLOCKQUOTE><font size=1 face=arial>Citando:<hr height=1 noshade>
:) Hola Genteee !!!
Aquí pues ...nuevecita! por favor necesito que alguien me indique como introducir el siguiente código :
<pre>
&lt;html&gt;

&lt;head&gt;&lt;script LANGUAGE=&quot;JavaScript&quot;&gt;

function redireccionar() {
var url640x480 = &quot;http://www.tu-sitio.com/640x480&quot;;
var url800x600 = &quot;http://www.tu-sitio.com/800x600&quot;;
var url1024x768 = &quot;http://www.tu-sitio.com/1024x768&quot;;
if ((screen.width == 640) &amp;&amp; (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) &amp;&amp; (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) &amp;&amp; (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}

&lt;/script&gt;

&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;

&lt;body onLoad=&quot;redireccionar()&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>

Lo que quiero es que mis visitantes adapten automáticamente su ventana a la resolución de 600 x 800 , ¿es el código correcto, cierto? estaré esperando ayuda, muchas gracias. ;) [/QUOTE]