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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detecting moniitor resolution 1

Status
Not open for further replies.

bigbird3156

Programmer
Joined
Feb 20, 2001
Messages
183
Location
AU
Hi there...

Is there a way to detect a computers monitor resolution automatically?

I have just imbeded a flash movie in a html page that is intended to take up the whole browser window.

the problem of course is that if the users computer is set to 1024 X 768 rather than 800 x 600 you get a really small flash movie that sits in the top left corner with a lot of blank space around it....

I could ask the user to specify resolution before entering the flash movie and then set up the layer size to match in 2 seperate html pages, but that is a bit messy and assumes that everyone knows what res their computer is set to... which of course a lot of newbies and stuff do not...

so is there a way to detect a computers res and then send the user automatically to the apropriate page?

Hope someone can help (-: The Bird from Down Under
bigbird_3156@bb3.com.au
 
<script language=javascript>
function getRes(){
var theHeight = screen.height;
var theWidth = screen.width;
}
</script>

for more info on the screen object in javascript, check out:


:-)
paul
penny.gif
penny.gif
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top