Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Trouble opening new window.
From: Jason Bouwmeester
Date: Wed, 16 Feb 2000 17:09:23 GMT

Paul,

Makes perfect sense. This code goes into the page that contains the initial
swf, not the page being loaded. To put them all into the main movie just
name each function different and continue on beneath, for example:

<title>shout</title>
<script language="JavaScript">
<!--
function window1() {
window.open("http://www.mobilixnet.dk/~mob33150/window1.html","window1",tool
bar=
0,scrollbars=0,resizable=0,height=350,width=600");
}
function window2() {
window.open("http://www.mobilixnet.dk/~mob33150/window2.html","window2",tool
bar=
0,scrollbars=0,resizable=0,height=350,width=600");
}
function window3() {
window.open("http://www.mobilixnet.dk/~mob33150/window3.html","window3",tool
bar=
0,scrollbars=0,resizable=0,height=350,width=600");
}
// -->
</script>

and so on. I would title the page not shout but whatever your main page is
called, the title for shout will go in shout.html.

Now, IF your windows are all the same size you could simplify the code to
one function and just have it pass an argument to load the correct html page
but this gets a bit tricky.

Hope this helps clarify things.

Jason

-----Original Message-----
From: Paul Kilgour [paulkatmobilixnet [dot] dk (mailto:paulkatmobilixnet [dot] dk)]
Sent: Wednesday, February 16, 2000 9:54 AM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Trouble opening new window.


Jason,

> I've laid out some script/explanations at
> http://139.142.142.166/popupwindow.htm - part of your problem is your get
> URL, you should be getting ("javascript:newwin()") instead of the http://
> you have in there.
>
OK. So I put ("javascript:shout()")

shout being the name of the html file I want opened in a new window.

Then I have this script between <head> and </head>. (Sorry, I'm not an HTML
person).


<title>shout</title>
<script language="JavaScript">
<!--
function shout() {

window.open("http://www.mobilixnet.dk/~mob33150/shout.html","shout",toolbar=
0,scrollbars=0,resizable=0,height=350,width=600");
}
// -->
</script>


shout is the name of the html file and the name for the new window.

Do I put this in the html for the main movie or in the html for the new
window? i.e, I've put the swf for the new window into Dreamweaver. Do I put
the above script in there? Or in the main movie?

Sorry to be thick, but if it goes in the main movie, I have 23 buttons that
open new windows - how do I put them all in the same document?

I hope this makes sense!!

Regards,

Paul.

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World's Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The Worlds Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]