Thread View: alt.comp.lang.visualbasic.ver3
4 messages
4 total messages
Started by Ryan Healey
Thu, 25 Feb 1999 00:00
screen resolution
Author: Ryan Healey
Date: Thu, 25 Feb 1999 00:00
Date: Thu, 25 Feb 1999 00:00
11 lines
1718 bytes
1718 bytes
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
Re: screen resolution
Author: 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
Re: screen resolution
Author: priv
Date: Sun, 28 Feb 1999 00:00
Date: Sun, 28 Feb 1999 00:00
42 lines
2682 bytes
2682 bytes
>
>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
here U are
function aktualRozdzielczosc ()
{
if ( (navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4) )
document.all ['rozdz'] . innerHTML = " <b><big>" +
document.body.clientWidth + "x" + document.body.clientHeight + "</big></b>";
else if ( (navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion) >= 4) )
{
with (document["rozdz"].document)
{
open();
writeln (" <b><big>" + innerWidth + "x" + innerHeight +
"</big></b>");
close();
}
}
}
in <body> write it:<body>
onResize="aktualRozdzielczosc();" onLoad="aktualRozdzielczosc();".
-------
<div class=akapit> aktualna wielko�� okna:</div> <div style="position:
absolute" id=rozdz class=akapit>...</div>
but its only for showing same resolution
Ps: make sites in thje center of the screen then even peple who have 640x480
wont be confused:))
f.ex table 640 for ...
it works belive
Re: screen resolution
Author: Steve Hueners
Date: Tue, 02 Mar 1999 00:00
Date: Tue, 02 Mar 1999 00:00
54 lines
2842 bytes
2842 bytes
priv wrote in message ...
>
>>
>it works belive
You're kidding, rite? ;-)
>>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
>here U are
> function aktualRozdzielczosc ()
>{
> if ( (navigator.appName == "Microsoft Internet Explorer") &&
>(parseInt(navigator.appVersion) >= 4) )
> document.all ['rozdz'] . innerHTML = " <b><big>" +
>document.body.clientWidth + "x" + document.body.clientHeight +
"</big></b>";
>
> else if ( (navigator.appName == "Netscape") &&
>(parseInt(navigator.appVersion) >= 4) )
> {
> with (document["rozdz"].document)
> {
> open();
> writeln (" <b><big>" + innerWidth + "x" + innerHeight +
>"</big></b>");
> close();
> }
> }
>}
>in <body> write it:<body>
>onResize="aktualRozdzielczosc();" onLoad="aktualRozdzielczosc();".
>
>-------
><div class=akapit> aktualna wielko�� okna:</div> <div style="position:
>absolute" id=rozdz class=akapit>...</div>
>but its only for showing same resolution
>Ps: make sites in thje center of the screen then even peple who have
640x480
>wont be confused:))
> f.ex table 640 for ...
>it works belive
>
>
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads