473,748 Members | 8,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resize to full screen but leave window resizeable?

Els
Hi, i have the following script in the head of my document:

<script language="Javas cript">
<!--
// *************** *************** *************** **
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// *************** *************** *************** **
window.moveTo(0 ,0)
window.resizeTo (screen.width,s creen.height)
//-->
</script>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaS cript"><!--var NN2 =
(navigator.appN ame == "Netscape") &&
navigator.userA gent.indexOf("M ozilla/2") != -1);function
VensterFocus() {if (!NN2) {self.focus();} }//-->
</SCRIPT>

But I want my visitors to be able to resize the screen. How do I alter
the a.m. script? (I have no clue whatsoever about javascript, so
please be very precise :-))
(In IE 5 it is indeed resizeable, but it isn't in IE 6 and others)

Thanks in advance,
Sincerely,

Els

Jul 20 '05 #1
8 15825
Els wrote:
Hi, i have the following script in the head of my document: window.moveTo(0 ,0)
window.resizeTo (screen.width,s creen.height)


Argh! Please no!

http://david.us-lot.org/www/dumb/fullscreen.jpeg

If users want a fullscreen window, then they are quite capable of clicking
maximise, hitting F11, or whatever else will create a fullscreen window on
their system.

--
David Dorward http://david.us-lot.org/
Which is stupider: Pop-up ads claiming they'll stop spam, or spam claiming
it'll stop pop-up ads? -- Dork Tower
Jul 20 '05 #2
Els

"David Dorward" <do*****@yahoo. com> schreef in bericht
news:bg******** ***********@new s.demon.co.uk.. .
Els wrote:
Hi, i have the following script in the head of my document:
window.moveTo(0 ,0)
window.resizeTo (screen.width,s creen.height)


Argh! Please no!

http://david.us-lot.org/www/dumb/fullscreen.jpeg


Argh! Please no! No hidden source code!! Now I can't figure out how
you made that cute little button on the bottom right corner! ;-)

By the way: the folder 'dumb' must be meant for me, 'cause I don't
understand what this jpeg has to do with me wanting to do a
window.resize, unless you're only referring to the mentioned button.
If users want a fullscreen window, then they are quite capable of clicking maximise, hitting F11, or whatever else will create a fullscreen window on their system.
Yes, so, that's your opinion (and of a lot of others, I know, don't
respond, everyone), but I want it to do it this way and therefore I
asked a question.
Please answer it? (the name of this group is "comp.lang.java script",
not "comp.ethics.pu blicopinion.jav ascript".... ;-))
-no sarcasm intended-

Thanks in advance,
Sincerely,

Els
Which is stupider: Pop-up ads claiming they'll stop spam, or spam claiming it'll stop pop-up ads? -- Dork

Tower

Jul 20 '05 #3
Els

"David Dorward" <do*****@yahoo. com> schreef in bericht
news:bg******** ***********@new s.demon.co.uk.. .
Els wrote:
> window.moveTo(0 ,0)
> window.resizeTo (screen.width,s creen.height) http://david.us-lot.org/www/dumb/fullscreen.jpeg
It is a demonstration of what happens when people use the code your
suggested on a system. It ends up with a large chunk of the window
appearing in dead space, and a three inch gap between the two remaining parts.
I can see that result on the jpeg, but as you didn't provide the
source code, I couldn't compare the code to mine, as with my own page,
using this piece of script, nothing like that happens. (not in IE6,
NN7 or Opera7)
check: www.rachelrijsdijk.com click the face and see what happens.
(Don't worry about the frames, I'm already working on a frameless
version)
Yes, so, that's your opinion (and of a lot of others, I know, don't respond, everyone), but I want it to do it this way and therefore I asked a question.


This is Usenet, you get unsolicited advice. Live with it. I was

warning you of the problems you can face (and that's just in the area of making your content unreadable, I haven't touched on how much it can annoy people even when it works as expected).
I don't mind the unsolicited advice at all, in fact, I find it quite
usefull at times.
But....
You didn't answer my initial question: how do I allow my visitors to
resize the screen after I made it full screen width?
(That's what is annoying my visitors most at the moment.)
--
David Dorward http://david.us-lot.org/ Which is stupider: Pop-up ads claiming they'll stop spam, or spam claiming it'll stop pop-up ads? -- Dork

Tower

I'm not sure, I think they're equally stupid.
The stupidest however, would be the pop-up claiming it'll stop
pop-ups.
Or the spam claiming it will stop spam ;-)

Sincerely,
Els
Jul 20 '05 #4
Els wrote:
I can see that result on the jpeg, but as you didn't provide the
source code, I couldn't compare the code to mine, as with my own page,
using this piece of script, nothing like that happens. (not in IE6,
NN7 or Opera7) check: www.rachelrijsdijk.com click the face and see what happens.


Exactly the same thing happens here as in the screenshot I referred to
earlier. I suspect that you use a different system to run multiple
monitors.

--
David Dorward http://david.us-lot.org/
Which is stupider: Pop-up ads claiming they'll stop spam, or spam claiming
it'll stop pop-up ads? -- Dork Tower
Jul 20 '05 #5
"Els" <el*********@PL EASEtiscali.nl> writes:

Please don't top post.
I can see that result on the jpeg, but as you didn't provide the
source code, I couldn't compare the code to mine,
I recognized the jpeg as showing the result of code *exactly* like
yours on a computer with two screens attached and a desktop that spans
the screen.
as with my own page,
using this piece of script, nothing like that happens. (not in IE6,
NN7 or Opera7)
.... because *you* don't have two screens.
check: www.rachelrijsdijk.com click the face and see what happens.
(Don't worry about the frames, I'm already working on a frameless
version)


I don't have two screens either, but I do use Opera 7. This is the result:
<URL:http://www.infimum.dk/privat/fullscreenFails .jpg>
(You can ignore the red "[body]"'s, it's just my user stylesheet telling
me that the link targets).

If I came to a page like this, I should be very motivated before I
used the vertical scroll bar. There should be money involved before I
would maximize the browser (and then the bottom of the page would
still be obscured).

Listen when people tell you that opening full-screen windows is very
annoying.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #6
Els

"David Dorward" <do*****@yahoo. com> schreef in bericht
news:bg******** ***********@new s.demon.co.uk.. .
Els wrote:
I can see that result on the jpeg, but as you didn't provide the
source code, I couldn't compare the code to mine, as with my own page, using this piece of script, nothing like that happens. (not in IE6, NN7 or Opera7)
check: www.rachelrijsdijk.com click the face and see what happens.


Exactly the same thing happens here as in the screenshot I referred

to earlier. I suspect that you use a different system to run multiple
monitors.


Ehh... no, I didn't realize that you were talking about using multiple
monitors.
(I told you the 'dumb'-folder was meant for me ;-))

I get your point now, thanks.
But.... is there a way you (or anyone) could still answer my question?
Even just for the sake of curiosity??

Thanks, sincerely,
Els
Jul 20 '05 #7
"Els" <el*********@PL EASEtiscali.nl> wrote in message
news:bg******** **@reader1.tisc ali.nl...
<snip>
If I came to a page like this, I should be very motivated
before I used the vertical scroll bar. There should be money
involved before I would maximize the browser (and
then the bottom of the page would still be obscured).


Are you saying that you didn't at all, not even once,
maximize your browser to see what the page looked
like? Sure?


I certainly do not ever maximise a browser window. In fact there is only
one application that I ever use full-screen and that is a 3D graphics
package, which was why I bought a 24 inch monitor in the first place.

I doubt that David maximises windows often (if ever) for reasons that
should be apparent from his original screen-shot.

In my case, if a window attempts to monopolise my monitor I will usually
have hit Alt+F4 before it has even had a chance to download anything.

Incidentally, one of the obvious (among many) and easily corrected
faults in the original script is that it does not check to see how big
the screen actually is. In almost all cases it just doesn't make sense
to make a browser window bigger than the biggest it could be on a 17
inch monitor (that is; anyone who designed a page that required a
display bigger than a 17 inch monitor should not be designing web
pages). It is easy enough to perform a comparison on the dimensions
returned for the screen and default them to a maximum value if they are
bigger than required. Though that would still not work well on David's
multi-monitor set-up or on Opera.

But a fluid page design, in a window with user specified chrome and left
to the user to re-size/position to suite, is what everyone is used to
and capable of coping with (and happy with).

Richard.
Jul 20 '05 #8
"Els" <el*********@PL EASEtiscali.nl> writes:
"Lasse Reichstein Nielsen" <lr*@hotpop.com > schreef in bericht
news:sm******** **@hotpop.com.. .
Please don't top post.
Did I??


Duh, no. Don't know how I got that idea. Sorry.
It still looks different (a bit) in 'my Opera 7' though. I don't get
the tiny space between the topframe and the menuframe,
I get that in both O7.11 and O7.20beta2.
nor the whiteborder on the left and top of the topframe,
I don't get those in O7.11 either. It can be a beta issue.
but maybe that's how you configured Opera? It seems like the top and
menu frames are smaller than in 'my Opera7', therefore the words of
the menu wrap. On my screen they don't...
I have
body {font-size:100% !important;}
which can throw off some people's attempt at small fonts, but they
don't wrap in O7.11 (where I don't add the "[body]" after the links).
Are you saying that you didn't at all, not even once, maximize your
browser to see what the page looked like?
Maybe I did once. I was young and needed the money! But seriously, I
only use full screen mode when I am testing something in Opera's
projection mode. E.g., the link in my signature looks differently in
Opera's full screen (F11) mode.
Sure?
Almost. I had to be very interested first ... but, OK, I don't need
money for it ... most of the time.
Yes, I do listen, but I always try to investigate matters further than
just believing everyone.
Unless it matches my preconcieved opinions, ofcourse.
My guess is that you do that too. :-)


"Flattery will get you everywhere." - Mae West

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #9

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

Similar topics

10
2118
by: Rob | last post by:
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;
9
12319
by: pow67 | last post by:
Is there a javascript statement which can be incorporated in a hyperlink which will open a new page that fills the screen while leaving the page with the link open? Thanks in advance. CW
6
5645
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser window when I open a new window. > > function expand() { > window.moveTo(0,0); > window.resizeTo(screen.availWidth, screen.availHeight); > }
14
31960
by: franz | last post by:
hallo everyone, i have a popup window 500x400px centered in the middle of the screen and inside it there's a mini-photogallery. what i want is to click on a thumbnail and open in the same window a page that is fullscreen big and move to co-ordinates (0,0) I've written some code to do that: <script language="JavaScript"> <!-- function resize_()
3
1671
by: mindseeker | last post by:
I have a html window that is opened from another link with the toolbars etc off. i have javascript code to detect the users screen size, which then the newly opened window uses to resize to full screen. this code doesnt seem to work correctly with IE and XP. it works correctly under netscape, mozilla in XP, and under WIN2k, it works with IE, netscape mozilla. it does it on other peoples pcs, so i know its just not me
5
27194
by: James Black | last post by:
In Firefox I can resize the window that is created, but in IE I can't. Here is the code I am using: var generator=window.open('','name','height=500,width=675,resizeable=1,toolbar=0,menubar=0,scrollbars=1'); I also tried it with 'no' and 'yes' instead of '0' and '1'. I see the symbol in the window that I can click and drag, but, when I do click and drag, nothing happens.
1
2721
by: Rich | last post by:
Hello, I have a child form in a parent MDI form. The childform is being shrunk and cannot be resized when screen resolution is 800x600. The end user who uses my app cannot see stuff on the screen too well if the resolution is smaller than 800x600 (why did it have to be my app?) Yes, I know, get a bigger screen - $$. Management is on it - just not right now. The parent form can be resized but not the child form. What is the way...
69
13484
by: RC | last post by:
I know how to do this in JavaScript by window.open("newFile.html", "newTarget", "scrollbars=no,resizable=0,width=200,height=200"); The browser will open a new window size 200x200, not allow resize and no auto horizontal, vertical scrolling bars. I am wonder can I do the similar inside a HTML file like
5
2746
by: Doug Gunnoe | last post by:
I'm considering resizing a div onload to better match the screen width of the user. Easy enough, however it seems that I have read in this group that there are potential problems with this, differences amongst the browsers, inconsistence in determining screen size, and debate about which property to use - and by this I believe there is screen size something like available screen size. Any thoughts or guidance on this subject is...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.