Maximizing Resolution

B

Bruise

Is there a code I can use to make my webpage maximize itself regardless of
the viewers set screen resolution?

Example: I designed the site with 800x600 resolution, but now I find out
that most of my visitors use 1024 x 768 resolution. I want the page to be
full screen for all visitors.

Can anyone help me with this? I would truly appreciate it.

Mark
 
T

Thomas A. Rowe

What about what your user want? Just because a user has a resolution of 1024 x 768 or higher,
doesn't mean that they browse full screen! Also you may loose site visitors by automatically
changing their browser to full screen as many will not return to your site.

Anyway, do a search in your IE address bar:

? JavaScript Full Screen Windows
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
N

NomisJM

Try this as an easy solution.

Add the line below into the body tag.

onload="maximizeWin()"

then add this into the head content.

<script language = "javascript">
// Miximise the window
function maximizeWin() {
if (window.screen) {
var aw = screen.availWidth;
var ah = screen.availHeight;
window.moveTo(0, 0);
window.resizeTo(aw, ah);
}
}
</script>
 
M

Murray

Mac users (along with me and many others) will hate you for this.

I don't want you to mess with my browser. You change it when I come to your
site, and you don't change it back when I leave. Besides, wouldn't it be
more professionaly to make the site adapt to the visitor than to force the
visitor to adapt to the site?
 
N

NomisJM

That script will maximise the browser window to the users current size not
change it from the users current settings.

What MAC users think has no bearing on my answer or his question. And I
think Bruise asked how to do it, not your opinion on what MAC users want and
think. You as with many other people on here spend there time picking holes
in the way people work as apposed to answering there questions; its supposed
to be a help forum not a area for people to pick holes in your work.
Now had he asked how to make his site more professional so it adapts to the
users setting be them MAC or MS users, then your comment would be nearly
useful, had you actually suggested an solution as well it would have been
very useful
 
M

Murray

That script will maximise the browser window to the users current size not
change it from the users current settings.

Let's take an example. My screen is 1280x1024. My browser viewport is
rarely wider than 740px. What size will it be when I visit this site? What
size will it be when I immediately leave the site, never to return?

It is help when people raise issues you had not considered. Obviously this
is one you had not considered.
 
N

NomisJM

Hey look, he never asked what size window you browse at, all he wanted was to
know how to do it, another example then.

I work for a company where I have a number of consultants/brokers/staff that
use my site as a form of intranet if you like, they use home pc's with number
screen resolutions. I want all of my users to see it full screen, not in
smaller window because they are viewing things they dont want people to see.
This site is not intended for the general public to see, and so your viewing
preference makes no difference to me.

I ask the question and get your answer, what help is that to me?

You can't assume everyone on here is building sites for your use, I
appreciate that most may well be public use sites but not all. And you are
probably the minority.

Lastly as you are the minority, you can always reduce your window size when
you open the site if you dont like it..
 
N

NomisJM

Cheeky little touch.

Anyhow enough of the bickering, I'm on here for solutions and to help where
I can. I just feel that often most people asking these questions are amateur
developers or hobby site builders and would just like a solution, I know when
I ask things it's not a matter of making my site the most popular or best on
the web, but often because I'm interested to find out, or I'm trying some new
stuff. And lots of people answer with criticism or objections but no
recommendations or solutions.
 
M

Murray

The point is that there is *no* real solution. Many modern browsers now
prevent such amateurish behavior. You can't resize them programatically
even if you wanted to. So - why waste the effort which might be better
spent on your site's content?
 
B

Bruise

Wow! If I had known my first inquiry on this NG would produce this kind of 'fiery' debate.....

I appreciate input from you all and I thank you. I do think, however, that I didn't word my question quite right. I do not want to change the viewers resolution on thier browser. I must want my site to fill the width of their viewing area that they are already at. There are some sites where, if my resolution were set at 800x600 or 1024x768, it would look exactly the same and leave no space on the right side of the designed area. If I designed my site in 1024x768 instead of 800x600, it would look right on someone's screen set to 1024x768, but be too big for someone with 800x600.

That's all I want. I do not want to change their screen resolution each time they visit my site...I just want my site to fill their predetermined viewing area regardless of what that predetermined viewing area is.

Does that make more sense? If it's going to cause another argument, I'll drop the issue.... ;)

Mark
 
M

Mike Mueller

:: Mark asked:
:: Is there a code I can use to make my webpage maximize
itself
:: regardless of the viewers set screen resolution?
::
:: Example: I designed the site with 800x600 resolution,
but now
:: I find out that most of my visitors use 1024 x 768
resolution. I
:: want the page to be full screen for all visitors.

:
: The point is that there is *no* real solution. Many
modern browsers now
: prevent such amateurish behavior. You can't resize them
programatically
: even if you wanted to. So - why waste the effort which
might be better
: spent on your site's content?

Exactly.
And besides the browser blocking it, the code will not
change the
screen resolution.

The best solution for the poster is to design his page to be
flexible
 
B

Bruise

Exactly. What I am looking for, I guess, is help on making it flexible from
the beginning....
 
S

Steve Easton

If it's going to cause another argument, I'll drop the issue.... ;)

Heavens no, don't drop it. This thread has been this mornings entertainment.

As for your question, Murray's last post answers it.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer

"Bruise" <mkrupiarzATshaw.ca> wrote in message Wow! If I had known my first inquiry on this NG would produce this kind of 'fiery'
debate.....

I appreciate input from you all and I thank you. I do think, however, that I didn't word my
question quite right. I do not want to change the viewers resolution on thier browser. I
must want my site to fill the width of their viewing area that they are already at. There
are some sites where, if my resolution were set at 800x600 or 1024x768, it would look
exactly the same and leave no space on the right side of the designed area. If I designed
my site in 1024x768 instead of 800x600, it would look right on someone's screen set to
1024x768, but be too big for someone with 800x600.

That's all I want. I do not want to change their screen resolution each time they visit my
site...I just want my site to fill their predetermined viewing area regardless of what that
predetermined viewing area is.

Does that make more sense? If it's going to cause another argument, I'll drop the issue....
;)

Mark
 
S

Steve Easton

LOL.

I'm on your side on this one.
Was going to chip in but said nah...

I guess the alternative would be to tell the op how, and then list all of
the reasons not to do it.

But, the bottom line is: IE in XP SP2 and all future versions will block it
anyway, so why bother
posting instructions.

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
R

Rob Giordano \(Crash\)

Kinda like going through a long winded explanation of how to change a flat
tire, but neglecting to tell the newbie that the spare tire is also flat?


| LOL.
|
| I'm on your side on this one.
| Was going to chip in but said nah...
|
| I guess the alternative would be to tell the op how, and then list all of
| the reasons not to do it.
|
| But, the bottom line is: IE in XP SP2 and all future versions will block
it
| anyway, so why bother
| posting instructions.
|
| ;-)
|
| --
| Steve Easton
| Microsoft MVP FrontPage
| 95isalive
| This site is best viewed............
| .......................with a computer
|
|
|
| | > Steve, your popcorn was stale....
| >
| > --
| > Murray
| > ============
| >
| > | >> If it's going to cause another argument, I'll drop the issue.... ;)
| >>
| >> Heavens no, don't drop it. This thread has been this mornings
| >> entertainment.
| >>
| >> As for your question, Murray's last post answers it.
| >>
| >>
| >> --
| >> Steve Easton
| >> Microsoft MVP FrontPage
| >> 95isalive
| >> This site is best viewed..................
| >> ..............................with a computer
| >>
| >> "Bruise" <mkrupiarzATshaw.ca> wrote in message
| >> | >> Wow! If I had known my first inquiry on this NG would produce this
kind
| >> of 'fiery'
| >> debate.....
| >>
| >> I appreciate input from you all and I thank you. I do think, however,
| >> that I didn't word my
| >> question quite right. I do not want to change the viewers resolution
on
| >> thier browser. I
| >> must want my site to fill the width of their viewing area that they are
| >> already at. There
| >> are some sites where, if my resolution were set at 800x600 or 1024x768,
| >> it would look
| >> exactly the same and leave no space on the right side of the designed
| >> area. If I designed
| >> my site in 1024x768 instead of 800x600, it would look right on
someone's
| >> screen set to
| >> 1024x768, but be too big for someone with 800x600.
| >>
| >> That's all I want. I do not want to change their screen resolution
each
| >> time they visit my
| >> site...I just want my site to fill their predetermined viewing area
| >> regardless of what that
| >> predetermined viewing area is.
| >>
| >> Does that make more sense? If it's going to cause another argument,
I'll
| >> drop the issue....
| >> ;)
| >>
| >> Mark
| >>
| >>
| >> "Bruise" <mkrupiarzATshaw.ca> wrote in message
| >> | >>> Is there a code I can use to make my webpage maximize itself
regardless
| >>> of
| >>> the viewers set screen resolution?
| >>>
| >>> Example: I designed the site with 800x600 resolution, but now I find
| >>> out
| >>> that most of my visitors use 1024 x 768 resolution. I want the page
to
| >>> be
| >>> full screen for all visitors.
| >>>
| >>> Can anyone help me with this? I would truly appreciate it.
| >>>
| >>> Mark
| >>>
| >>>
| >>
| >>
| >
| >
|
|
 
S

Steve Easton

Yup.

;-)


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top