Checkout this test page link:
http://exelstudio.com/screensizetest.cfm
Here's the code:
<cfset screenwidth = "<script>document.write(screen.width);</script>">
<cfset screenheight = "<script>document.write(screen.height);</script>">
<cfset availWidth = "<script>document.write(screen.availWidth);</script>">
<cfset availHeight = "<script>document.write(screen.availHeight);</script>">
<cfset colorDepth = "<script>document.write(screen.colorDepth);</script>">
<cfset pixelDepth = "<script>document.write(screen.pixelDepth);</script>">
<cflock scope="session" type="exclusive" timeout="59">
<cfset session.screenwidth = screenwidth />
<cfset session.screenheight = screenheight />
</cflock>
<cfoutput>
<div style="padding:15px;">
Screen dimensions: #Session.Screenwidth# width X #Session.Screenheight#
height<br /><br />
Available browser width: #availWidth#<br />
Available browser height: #availHeight#<br />
Color depth: #colordepth#<br />
Pixel depth: #pixelDepth#
</div>
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353626
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm