Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Screen Size
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Freeman II
Junior Member

232 Posts

Posted - 04 June 2001 :  19:17:49  Show Profile
how do you use asp to detect user's screen size? i wanna make diferent designs for different resolution.

Freeman II
Junior Member

232 Posts

Posted - 05 June 2001 :  18:20:14  Show Profile
any ideas?


Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 05 June 2001 :  19:30:12  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
I took this out of an application called StatcountX. It shows how the screen resolution is captured. You can't use this code "as-is", but it's a decent start.

<script type="text/javascript" language="JavaScript">

f='' + escape(document.referrer);
if (navigator.appName=='Netscape'){b='NS';}
if (navigator.appName=='Microsoft Internet Explorer'){b='MSIE';}
if (navigator.appVersion.indexOf('MSIE 3')>0) {b='MSIE';}
u='' + escape(document.URL); w=screen.width; h=screen.height;
v=navigator.appName;
fs = window.screen.fontSmoothingEnabled;
if (v != 'Netscape') {c=screen.colorDepth;}
else {c=screen.pixelDepth;}
j=navigator.javaEnabled();
info='w=' + w + '&h=' + h + '&c=' + c + '&r=' + f + '&u='+ u + '&fs=' + fs + '&b=' + b + '&x=' + x;
</script>

@tomic

Go to Top of Page

Freeman II
Junior Member

232 Posts

Posted - 06 June 2001 :  16:14:10  Show Profile
any idea on how to translate this into asp? and redirect to the correct resolution page

Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 06 June 2001 :  17:20:12  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Before going further, let me give you a list of all the different screen resolutions I have for the month so far. Are you really wanting to make this many versions?

ResName Total
800x600 28133
1024x768 27609
1280x1024 2267
640x480 1898
1152x864 1650
(unknown) 1345
1600x1200 337
800x553 233
832x624 227
1152x870 176
1400x1050 147
2048x768 120
991x721 88
2304x864 56
1024x721 50
1180x877 34
640x433 29
1024x689 27
2560x1024 27
560x420 25
1280x960 24
nullxnull 20
800x537 19
1280x977 17
1600x1024 17
1600x1133 17
800x528 16
1152x900 15
800x551 14
1024x600 13
720x576 12
1024x671 11
1024x711 11
720x480 11
1024x736 11
983x721 10
800x584 10
767x553 9
800x581 9
1600x1280 9
2048x1536 9
991x749 8
798x551 8
640x423 6
1024x2304 6
3072x768 6
1024x696 4
1024x749 4
960x720 4
800x521 4
798x581 3
1247x977 2
800x543 2
1152x844 1
792x544 1
767x581 1
800x530 1
798x553 1
0x870 1
1152x768 1
991x711 1


@tomic


Go to Top of Page

Freeman II
Junior Member

232 Posts

Posted - 07 June 2001 :  16:30:29  Show Profile
thanks for that list atomic
oh no i just gonna make one for these resolutions 800x600, 640x480, 1024x768, 1280x1024 if the client's resolution is in between then the server will send to the closest page.
ex:
if the client's res is 1024x671 the server will send 1024x768

Go to Top of Page

ahlanwasahlan101
Starting Member

3 Posts

Posted - 07 June 2001 :  18:26:37  Show Profile
dfg dfhg dfhg dfdfgdfgdfgdfgdfgdfgdfgdf

Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 07 June 2001 :  19:52:42  Show Profile
quote:

dfg dfhg dfhg dfdfgdfgdfgdfgdfgdfgdfgdf




Please use the Test Forums for testing purposes ...

Think Pink
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07