Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect user(s) resolution or is it possible? 1

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
[tt]
Hello all, I'm creating an internal web and have tested it in with 1024x768 and 600x800 settings and in the 600x800 it looks like crap.

Is it possible to detect setting when a page is accessed? I'm probavly reaching here... [sup]
<%=Tony%>
Just trying to learn...
Got ASP Error(s)? =
[/sup]
 
[tt]
Thanks for responding onpnt.

Now, can you point me to where I can read on how to apply it on my pages? Thanks
[sup]
<%=Tony%>
Just trying to learn...
Got ASP Error(s)? =
[/sup]
 
without reading the other thread I posted I can give you a few examples

first
do a conditional on what the result form screen.width outputs
say
if (screen.width == 800) {
location.href = ' ' // a page that is more suited to this res.
}

or you can change some attributes in the tables. Like the width. (this one will get complicated and mostly confusing though, but once completed it can be very effective.
say
//get width
var wth = screen.width
//then put it to work
var table = document.getElementById(&quot;tableMain&quot;);
table.setAttribute(&quot;width&quot;,wth);



Just a suggestion: faq183-874
admin@onpntwebdesigns.com
 
[tt]
I'll check your first suggestion thread. Thanks [sup]
<%=Tony%>
Just trying to learn...
Got ASP Error(s)? =
[/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top