|
-
Dec 31st, 2002, 04:23 AM
#1
Thread Starter
Fanatic Member
window client size
is it possible to get to know the size of the window from the browser the user is using? using asp(<%@ Language=VBScript %>)
- Use the thread tools to Mark your Thread as Resolved when your question is answered.
- Please Rate my answers if they where helpful.
-
Dec 31st, 2002, 09:16 AM
#2
No. What are you trying to accomplish?
-
Dec 31st, 2002, 09:46 AM
#3
Thread Starter
Fanatic Member
i want to change the size of an image (header) of my web page, according the size of the window/ or the screen resolution
- Use the thread tools to Mark your Thread as Resolved when your question is answered.
- Please Rate my answers if they where helpful.
-
Dec 31st, 2002, 12:55 PM
#4
Lively Member
you can't do it with asp (because it's processed on the server) but you can find this out using the window object in javascript.
-
Jan 1st, 2003, 01:37 AM
#5
You can sniff the width and height, and using that, change the size of the header, or pick out separate headers for different resolutions.
-
Jan 2nd, 2003, 03:50 AM
#6
Thread Starter
Fanatic Member
Originally posted by mendhak
You can sniff the width and height
please could you tell me how to sniff tje width and height. Ihat was what i originally ment with my question
thx
- Use the thread tools to Mark your Thread as Resolved when your question is answered.
- Please Rate my answers if they where helpful.
-
Jan 2nd, 2003, 04:29 AM
#7
Fanatic Member
screen.width() and screen.height()...
Code:
<input type="button" value="Get Values" onclick="alert(screen.height + ' ' + screen.width);" />
-
Jan 2nd, 2003, 04:55 AM
#8
Thread Starter
Fanatic Member
- Use the thread tools to Mark your Thread as Resolved when your question is answered.
- Please Rate my answers if they where helpful.
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
|