Hi all,
How to get the user's resolution in vbscript?
Like there is the "screen.width and screen.height" in javascript?...what is the equivalent in vbscript?
Thanx in advance!!!
-Bhasker G
Printable View
Hi all,
How to get the user's resolution in vbscript?
Like there is the "screen.width and screen.height" in javascript?...what is the equivalent in vbscript?
Thanx in advance!!!
-Bhasker G
Why don't you want to use javascript?
since i dunno how to call the function inside the vbscript code...i dont have any <form> also ...so i cant use hidden variables....any suggestions?
Hi,
Here's a bit of code I use to decide which size picture to put in my header...
Hope it helps...Code:<html>
<body>
<script language="VBScript">
If Screen.Width = 1280 then
Document.Write "<body background=""Images/Header1280.gif"">"
Document.Write "<font color=""#FFFF00"" size=""3"" face=""Courier New"">"
Document.Write "<br><br><br><br><br><br><br><br>"
End If
If Screen.Width = 1024 then
Document.Write "<body background=""Images/Header1024.gif"">"
Document.Write "<font color=""#FFFF00"" size=""2"" face=""Courier New"">"
Document.Write "<br><br><br><br><br>"
End If
If Screen.Width = 800 then
Document.Write "<body background=""Images/Header800.gif"">"
Document.Write "<font color=""#FFFF00"" size=""1"" face=""Courier New"">"
Document.Write "<br><br><br><br>"
End If
</script>
</body>
</html>