SMF For Free Support Forum
Signup For Free Forum
July 30, 2010, 05:56:25 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Detect Details About the client's screen  (Read 312 times)
0 Members and 1 Guest are viewing this topic.
FcDigital~DZines
SMF For Free Newbie
*
Offline Offline

Posts: 14


View Profile
« on: June 25, 2009, 01:04:19 am »

Note: i did not make this script, i got it from (http://w3schools.com/js/tryit.asp?filename=tryjs_browsermonitor)

What it does is it gets info on the
Screen resolution, Available view area, Color depth, Buffer depth, DeviceXDPI, DeviceYDPI, LogicalXDPI,
LogicalYDPI, FontSmoothingEnabled, PixelDepth, and, UpdateInterval

here is and example

Code:
Screen resolution: 1024*768
Available view area: 1024*738
Color depth: 32
Buffer depth: 0
DeviceXDPI: 96
DeviceYDPI: 96
LogicalXDPI: 96
LogicalYDPI: 96
FontSmoothingEnabled: true
PixelDepth: undefined
UpdateInterval: 0

Script
Code:
<html>
<body>

<script type="text/javascript">
//Script came from (http://w3schools.com/js/tryit.asp?filename=tryjs_browsermonitor)
document.write("Screen resolution: ");
document.write(screen.width + "*" + screen.height);
document.write("<br />");
document.write("Available view area: ");
document.write(screen.availWidth + "*" + screen.availHeight);
document.write("<br />");
document.write("Color depth: ");
document.write(screen.colorDepth);
document.write("<br />");
document.write("Buffer depth: ");
document.write(screen.bufferDepth);
document.write("<br />");
document.write("DeviceXDPI: ");
document.write(screen.deviceXDPI);
document.write("<br />");
document.write("DeviceYDPI: ");
document.write(screen.deviceYDPI);
document.write("<br />");
document.write("LogicalXDPI: ");
document.write(screen.logicalXDPI);
document.write("<br />");
document.write("LogicalYDPI: ");
document.write(screen.logicalYDPI);
document.write("<br />");
document.write("FontSmoothingEnabled: ");
document.write(screen.fontSmoothingEnabled);
document.write("<br />");
document.write("PixelDepth: ");
document.write(screen.pixelDepth);
document.write("<br />");
document.write("UpdateInterval: ");
document.write(screen.updateInterval);
document.write("<br />");
</script>

</body>
</html>













Logged

B E N E L
SMF For Free Member
*
Offline Offline

Posts: 76



View Profile
« Reply #1 on: June 26, 2009, 02:36:24 am »

Explain better on how to edit and a preview if i may say Shocked, idk if it will work but yeah -.- needs more explaining.
Logged

BEST RSPS CLICK SIG DL THE CLIENT Here Runelocus CLICK HERE JOIN!!
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #2 on: June 26, 2009, 03:04:38 am »

Explain better on how to edit and a preview if i may say Shocked, idk if it will work but yeah -.- needs more explaining.

There are no edits for the code.
He posted a "Preview" of what it will display -  where it says "here is an example"
You can also see it on the right side of the page at the link he posted at the top.

note though -   
The <html> and <body> before the script and the </body> and </html> after the script are not needed and should not be used if this code is placed in the header/footer/portal block - anyplace you use html on the forum.
« Last Edit: June 26, 2009, 03:06:11 am by simply sibyl » Logged

FcDigital~DZines
SMF For Free Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #3 on: June 26, 2009, 05:01:26 am »

Explain better on how to edit and a preview if i may say Shocked, idk if it will work but yeah -.- needs more explaining.

There are no edits for the code.
He posted a "Preview" of what it will display -  where it says "here is an example"
You can also see it on the right side of the page at the link he posted at the top.

note though -   
The <html> and <body> before the script and the </body> and </html> after the script are not needed and should not be used if this code is placed in the header/footer/portal block - anyplace you use html on the forum.

thanks ss
Logged



Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.409 seconds with 15 queries. (Pretty URLs adds 0.171s, 2q)