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

resizing browser window according to screen resolution

Status
Not open for further replies.

levelem

Technical User
May 7, 2004
1
US
Hello all, I have read in a forum a while back (which I can no longer find) that it is possible to code my pages so that the browser window reconfigures the content of the page according to the screen resolution of the computer it is being viewed on.

Here is my concern: The site I have created is in frames (which I know is not a popular format to use) I did this so that the menu bar and the banners are consistent while the info window changes when different links are activated. I work well and you can't tell that the page has frames. However, I friend just test ran my site on various monitors and it turns out that monitors whose screen resolution set around the 800 px range are losing a part of my window and as a result of the frames I used some areas are not scrollable. Here is the link:
Hence if I could code the pages so that content is resampled for the proper screen resolution I would not have to redesign my site :)

Any help is greatly appreciated. If you be so kind as to also forward your response to karchip@ao.com

Thanks,
Karchi
 
I would think that setting your table widths to 100% should fix the problem.

[tt]-------- __@ __@ __~@
----- _`\<,_ _`\<,_ _`\<,_
---- (*)/ (*) (*)/ (*) (*)/ (*)
[/tt]
 

is one way and u can also use JAvaScript to detect the screen size and then redirec users to the page that is built for particualr size...(more work)
here is snip:
Code:
<script>
<!--
function sizeRedirect()
{
  var wide = window.screen.width;
    
  if(wide = 800) URLStr = "1.html";
  else URLStr = "2.html";
  location = URLStr;
}
//-->
</script>
</head>
<body onLoad="sizeRedirect()">

All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top