|
-
Apr 6th, 2001, 06:16 AM
#1
Thread Starter
Lively Member
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
-
Apr 6th, 2001, 07:08 AM
#2
Frenzied Member
Why don't you want to use javascript?
-
Apr 6th, 2001, 07:31 AM
#3
Thread Starter
Lively Member
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?
-
Apr 9th, 2001, 05:34 AM
#4
Fanatic Member
Hi,
Here's a bit of code I use to decide which size picture to put in my header...
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>
Hope it helps...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|