Article View: alt.comp.lang.visualbasic.ver3
Article #88Re: screen resolution
From: boredom/two
Date: Sat, 27 Feb 1999 00:00
Date: Sat, 27 Feb 1999 00:00
42 lines
2223 bytes
2223 bytes
<7b4fto$84n$1@quince.news.easynet.net>...
>Hi
>
>Can anyone direct me to the serverside code used
>to detect a clients screen resolution or even better
>can any one send me a example of a script that will
>direct a user to a certain webpage depending on the
>screen resolution their using.
>
>Cheers
>
>Ryan Healey @ healey@easynet.co.uk
>
>
-------> try this
function check()
{
breite=screen.width;
if (breite<1000)
{
window.open("resolution.html");
history.back();
}
}
this is the code from my startup-page.
the item "breite" checks the screen-resolution (screen.width)
and if the user does not have at least 1000pixels of width, he is not able
to view my page (history.back).
instead of that, a window opens, which informs him to change the resolution.
try it out:
www.boredomtwo.de
enjoy,
born to run
boredom/two
Technical Details
Message-ID:
<7b8f2n$k3f$1@black.news.nacamar.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7b4fto$84n$1@quince.news.easynet.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10640d,f63b1dc3961ed237 X-Google-Attributes: gid10640d,public X-Google-Thread: fc48c,f63b1dc3961ed237 X-Google-Attributes: gidfc48c,public X-Google-Thread: f5713,f63b1dc3961ed237 X-Google-Attributes: gidf5713,public X-Google-Thread: f92e3,f63b1dc3961ed237 X-Google-Attributes: gidf92e3,public X-Google-Thread: 11110c,f63b1dc3961ed237 X-Google-Attributes: gid11110c,public X-Google-Thread: 1023e1,f63b1dc3961ed237 X-Google-Attributes: gid1023e1,public X-Google-Thread: 102e3b,f63b1dc3961ed237 X-Google-Attributes: gid102e3b,public X-Google-Thread: fdea5,f63b1dc3961ed237 X-Google-Attributes: gidfdea5,public From: "boredom/two" <ego@boredomtwo.de> Subject: Re: screen resolution Date: 1999/02/27 Message-ID: <7b8f2n$k3f$1@black.news.nacamar.net> X-Deja-AN: 449225902 Content-Transfer-Encoding: 7bit References: <7b4fto$84n$1@quince.news.easynet.net> Content-Type: text/plain; charset=US-ASCII X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Organization: Posted via the Nacamar Network Mime-Version: 1.0 Newsgroups: alt.comp.lang.visualbasic.ver3,alt.html.editors.enhanced-html,alt.html.editors.webedit,alt.html.server-side,alt.html.tags,alt.html.writers,cz.comp.microsoft.asp,microsoft.public.frontpage.extensions.windowsnt,microsoft.public.iis4.beta.activeserve