Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Marblehead Johnson webforumsuser@macromedia.com #1
specifying web browser window size
Can this be done? Need to open html file in web browser (easy enough) but need the browser window to be a specific size. Can this be done through lingo? Or even is this something I can be adjusting paramaters in Dreamweaver when I create the html file?
Thanking in advance!
Richard
Marblehead Johnson webforumsuser@macromedia.com Guest
-
"open browser window" size
I am updating a site that uses pop-ups for definitions throughout the site. This is a medical site, so the pop-up definitions are essential. The... -
Specifying html browser window size from Flash link
I'm hoping someone knows how to do this -- I've been struggling with it for several days and just can't figure it out ... I want to set the... -
Safari - can't restrict the size of a new browser window
I have a new browser window with a specified size. I've specified that I don't want scroll bars or a resizeable window. The new browser window looks... -
Window Size/ alternative window size
I have created a site using a 1024x768 screen size, as this is the deafault for my moniter. Is there a quick way of changing the size to 800x600,... -
control browser window size
Yes, what you are wanting to do is easily done with JavaScript. However, like the majority of folks, I'd really appreciate it if you wouldn't try... -
Michael Hamstra #2
Re: specifying web browser window size
You would need to do that with java-scripting written into your html
(webpage).
You can specify window size, scrollbars, resize-able, titlebar, etc...
Michael Hamstra
"Marblehead Johnson" <webforumsuser@macromedia.com> wrote in message
news:bgmq9e$4mi$1@forums.macromedia.com...need the browser window to be a specific size. Can this be done through> Can this be done? Need to open html file in web browser (easy enough) but
lingo? Or even is this something I can be adjusting paramaters in
Dreamweaver when I create the html file?>
> Thanking in advance!
> Richard
>
>
>
Michael Hamstra Guest
-
Robert Tweed #3
Re: specifying web browser window size
"Marblehead Johnson" <webforumsuser@macromedia.com> wrote in message
news:bgmq9e$4mi$1@forums.macromedia.com...The JavaScript window.open function allows you to specify window size. The>
> Can this be done? Need to open html file in web browser (easy enough) but
> need the browser window to be a specific size.
only way to call that from Lingo is like this:
gotoNetPage( "javascript:void( window.open( 'mypage.html', 'popuptarget',
'width=300,height=200' ) );" )
I don't use DreamWeaver myself, but you should be able to get it to make a
popup for you with the correct parameters, then you can copy the parameters
for window.open from that (the last string is the complicated one, I've only
included the width and height parameters for illustration, but there are a
lot more possible options).
Note that this isn't strictly the correct way to call JavaScript, so you may
find that it doesn't work in every browser. However, there is no other
alternative from Shockwave. You should also bear in mind that if the user
has javascript disabled (about 10% of users) then absolutely nothing will
happen.
- Robert
Robert Tweed Guest
-
Bertil Flink #4
Re: specifying web browser window size
Yes, you can add this when you create the html file:
<script language="JavaScript">
<!--
window.resizeTo(320,320);
-->
</script>
Just put it in the <head>..</head> section.
--
Bertil Flink
Creative Media
"Marblehead Johnson" <webforumsuser@macromedia.com> skrev i meddelandet
news:bgmq9e$4mi$1@forums.macromedia.com...need the browser window to be a specific size. Can this be done through> Can this be done? Need to open html file in web browser (easy enough) but
lingo? Or even is this something I can be adjusting paramaters in
Dreamweaver when I create the html file?>
> Thanking in advance!
> Richard
>
>
>
Bertil Flink Guest
-
Robert Tweed #5
Re: specifying web browser window size
"Bertil Flink" <bertil@creativemedia.se> wrote in message
news:bgnqqd$ntf$1@forums.macromedia.com...That's a good point, I always overlook that for some reason. There are a> Yes, you can add this when you create the html file:
>
> <script language="JavaScript">
> <!--
> window.resizeTo(320,320);
> -->
> </script>
couple of things to watch though:
Firstly, you can't change the window style like you can with window.open
(removing menus, etc.). Also, any other windows that are opened from then on
will also be that size (if you are using IE, anyway). Personally, I find
that *extremely* annoying (as do a lot of other people, especially if they
can't figure out how to rectify it). Finally, you can't later decide to
close the popup with the javascript "window.close()" without a security
warning being shown (you can if the window was opened with window.open).
However, it does get around the problems associated with window.open that I
mentioned in my other post.
- Robert
Robert Tweed Guest
-
Marblehead Johnson webforumsuser@macromedia.com #6
Re: specifying web browser window size
Brilliant! Thanks for your input guys, big help.
Cheers,
Richard
Marblehead Johnson webforumsuser@macromedia.com Guest



Reply With Quote

