|
This code solves the problem of capturing a users screen resolution and containing it within a variable.I needed to change the font size on the page depending on the screen resolution of the user with redirecting them to an 800x600 ver of my page. Code: ASP 3.0 & VBScript |
| |
Overall Rating:
 User Rated
| |
Great code EXCEPT  Written by Terry Martin from Joplin, MO (Friday, September 16, 2005) Writer is with: http://www.cycleimpex.com
 |
Strengths: quick and efficient Weaknesses: a possible error in the javascript portion Details: I tested the script and found one small problem within the javascript... you must change the "res" to "scr".
Old code:
<script language="javascript">
scr = "&res="+screen.width+"x"+screen.height+"&d="+screen.colorDepth
location.href="default.asp?screen=check"+res
</script>
New code:
<script language="javascript">
scr = "&res="+screen.width+"x"+screen.height+"&d="+screen.colorDepth
location.href="default.asp?screen=check"+scr
</script>
Notice the change from screen=check"+res to screen=check"+scr.
This should fix any problems for you as it did for me (a novice at javascript). Review Based On: 1 Hour(s) of usage |
Great Code  Written by Anonymous User (#1669-223) from Nova scotia, Canada (Monday, December 02, 2002)
 |
Strengths: Very easy and does what I need. Weaknesses: none Details: I have a site...witch unfortunately does look that well in 640x480 and I didnt want to redirect my user to another version of my page. I used this code for so many things alreay...
thumbs-up Review Based On: 2 Day(s) of usage |
| |
|