Resize html window on Startup from cd-rom

R

Rob

Hi,

I have some problems resizing a html page when it is loaded.
I want the page to resize to the screensize.

The following snipped of code (see below) works perfect on my Windows NT.
but not on my Windows 98.

Windows 98 with Ms Explorer 6.0.2800.1106IS
Update versions:; SP1; q313829; Q328970; Q330994; Q813389l Q818529; Q824145;

What am I doing wrong.

It is from a site that I am constructing at:
http://test.comweb.nl/pereira/newsite2/

Thanks for any comments on how to solve this problem.
Rob.




<!-- resize window to wanted size -->
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
function sizeWindow()
{
width=window.screen.width;
height=window.screen.height;
window.moveTo(0,0);
window.resize(width,height);
}
//-->
</SCRIPT>

<BODY bgcolor="#DEEFF8" topmargin="0" leftmargin="15" marginwidth="15"
marginheight="0" onLoad="sizeWindow();">
 
B

Beauregard T. Shagnasty

Quoth the raven named Rob:
I have some problems resizing a html page when it is loaded.
I want the page to resize to the screensize.

The following snipped of code (see below) works perfect on my Windows NT.
but not on my Windows 98.
<snip>

Which browser are you using? Your resize will not do anything in my
browsers as I have turned off the option to allow web pages to resize
my window. It's my window, not yours. This function is available on
most modern browsers. Most visitors will think it rude of you to
resize and move around their window.

Aside: with JavaScript disabled, all I see at your page is a
background graphic.
 
R

rf

Most visitors will think it rude of you to
resize and move around their window.

Er, it's on a cd-rom, as per the subject line. I'd hardly expect many
visitors to a cd-rom :)

Cheers
Richard.
 
D

Duende

While sitting in a puddle rf scribbled in the mud:
Er, it's on a cd-rom, as per the subject line. I'd hardly expect many
visitors to a cd-rom :)
You never know where Brucie will show up.
 
M

Mark Parnell

Er, it's on a cd-rom, as per the subject line. I'd hardly expect many
visitors to a cd-rom :)

I missed the CD-ROM bit on first read, too. The OP really should have
mentioned it in the body of the message as well. Especially since he
gave a URL. :)
 
B

Beauregard T. Shagnasty

Quoth the raven named Mark Parnell:
I missed the CD-ROM bit on first read, too. The OP really should have
mentioned it in the body of the message as well. Especially since he
gave a URL. :)

I missed it in the subject line as well. Still don't see the need to
try to force the window, even if it is on a CD.
 
M

Mark Parnell

I missed it in the subject line as well. Still don't see the need to
try to force the window, even if it is on a CD.

Me either, though it is probably not quite as bad as on a www page.

It is worth noting to the OP, however, that a number of browsers have
the option to stop Javascript from resizing the window, and all have the
option to disable Javascript altogether. So unless you are working in an
intranet (in which case why would you need a CD?) where you know the
exact environment, you can never guarantee it is going to work.
 
R

rf

Beauregard T. Shagnasty said:
Quoth the raven named Mark Parnell:


I missed it in the subject line as well. Still don't see the need to
try to force the window, even if it is on a CD.

Go and have a look at the web site mentioned in the OP:
http://test.comweb.nl/pereira/newsite2/

He *has* to run the browser full screen because he is using some stupid
looking javascript skulduggery to document.write his images, client side
resized to 90% of the physical screen size.

If the browser is not full screen (as mine was not when I looked, and thanks
to the error of using resize instead of resizeTo) I only got about 30% of
the full sized 1600x1200 image.

Message to Rob: Do Not Do This! It makes the images look like they were
painted with a broom rather than an artists brush.

Cheers
Richard.
 
B

Beauregard T. Shagnasty

Quoth the raven named rf:
Go and have a look at the web site mentioned in the OP:
http://test.comweb.nl/pereira/newsite2/

I did. See my first post in this thread, where I said:

"Aside: with JavaScript disabled, all I see at your page is a
background graphic."
He *has* to run the browser full screen because he is using some stupid
looking javascript skulduggery to document.write his images, client side
resized to 90% of the physical screen size.

Rhetorical: Where do deezyners learn about this stuff? <g>
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top