473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Page in frame depending on screenresolution?

Hi,

Does any one know how to load a sertain page in a sertain frame depending on
the viwers screenresolution?

What i mean is that if a user has 800*600 i want page 800.htm to be loaded
in frame "content". If the user has 1024*768 i want page 1024.htm to be
loaded in frame "content".

Thank's in advance
Jul 20 '05 #1
2 1230
rf

"Martin Gustavsson" <no****@noserver.com> wrote in message
news:PV*******************@newsb.telia.net...
Hi,

Does any one know how to load a sertain page in a sertain frame depending on the viwers screenresolution?

What i mean is that if a user has 800*600 i want page 800.htm to be loaded
in frame "content". If the user has 1024*768 i want page 1024.htm to be
loaded in frame "content".


What if I have a browser window set at 800x900 on my 1600x1200 screen?

Build your page to be independend of screen size.

Cheers
Richard.
Jul 20 '05 #2
Ivo
"rf" <ma**********@the.time> wrote in message
news:hW*********************@news-server.bigpond.net.au...

"Martin Gustavsson" <no****@noserver.com> wrote in message
news:PV*******************@newsb.telia.net...
Hi,

Does any one know how to load a sertain page in a sertain frame depending
on
the viwers screenresolution?

What i mean is that if a user has 800*600 i want page 800.htm to be

loaded in frame "content". If the user has 1024*768 i want page 1024.htm to be
loaded in frame "content".


What if I have a browser window set at 800x900 on my 1600x1200 screen?

Build your page to be independend of screen size.

Cheers
Richard.


if (screen.width < 1024) {
document.location.replace("index800.html");
}
but don't rely too much on such stuff as screen resolution or even browser
width and height. People have all sorts of settings and preferences, and
they will like your site better if you leave it up to them.
Ivo
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Mark Bram | last post by:
Hi All, We are using a scrolling iFrame to present a list of options to the user within the main page with an anchor against each option. Depending on the user actions, we jump to an anchor in...
3
by: moondaddy | last post by:
I have a frame set where I have a hidden frame page used to marshal data back and forth. In another frame who's source page needs to stay fixed and not do round trips. However, at times I want do...
3
by: thedebugger | last post by:
Dear Friends, I am working on website application in c# with asp.net. My practice using aspx files is, I have 1 main aspx files for inside pages. Whenever user hit the button like aboutus,...
1
by: IkBenHet | last post by:
Aldo it is something very simpel, it is not easy to find good information on this subject. For the moment we have only 1 ASP.NET page and we want that if vistors access it, this visit is logged...
14
by: Silver | last post by:
I have a main page that includes one menu and one iFrame. Depending on the selections made on a menu, a different html page is loaded inside the iFrame. The menu is just a list of <a href=...> ...
3
by: McGowan | last post by:
the basic idea here is that I want a web page that is made up of frames to redirect automatically to a frame depending on an if statement... if($1 == $2) { load url1.php in frame "main" }else...
7
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on...
2
by: deepunarayan | last post by:
Hi, I have an ASP page with 3 frames on it. The let frame will have Index (in Tree Structure format) right one is the Content Frame shows the contents on the selected node. The bottom frame as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.