-
Hi it's me jydnas "Jeff" Sounds and Music Moderator.
I need some help with some Javascripting.
Here is the deal...
I made 2 buttons in a .fla
Both buttons have the action
________________________________
On (Release)
Get URL ("javascript:newwin()")
End On
______________________________
Now i used the code generator here at Flash Kit to generate the code.
So far so good.
Except the buttons open the same window.
i need to know how to set up the javascript so that button 1 opens window 1
and button 2 opens window 2
So send me the script in the e-mail when you get a chance.
If possible give an example on how to add on too it so if i want to add more buttons that open more windows i can.
Why you ask?... well i have 3 movies that i need to be opened in thier own seperate windows.
Thank you for your time...
regards...
Jeff
<EMBED src="/cgi-bin/ubb/Members/sigs/00000085.swf" quality=high WIDTH=500 HEIGHT=60 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>
-
Hey Jeff,
Try this JScript code:
<pre><script language="JavaScript"><!-- //
function newwin(pagename,windowname) {
window.open(pagename,windowname,"height=300,width= 300,toolbar=0,location=0,directories=0,status=0,me nubar=0,scrollbars=0,resizeable=0");
}
//--></script>
</pre>
Then call that from your buttons like this:
On (Release)
Get URL ("javascript:newwin('page1.html','page1');")
End On
On (Release)
Get URL ("javascript:newwin('page2.html','page2');")
End On
On (Release)
Get URL ("javascript:newwin('page3.html','page3');")
End On
So long as you give each window it's own name, they will each open in their own window.
Of course.. all those windows will be the same size.. If that's a problem, then that code will have to be modified slightly.. lemme know if that's the case.
<EMBED src="/cgi-bin/ubb/Members/sigs/00000205.swf" quality=high WIDTH=500 HEIGHT=50 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>
-
Cool scott....
Just what i needed to know.
It about 9:30am right now and i'll get started on that and let you know by either post or e-mail message.
have a good day...
regards
Jeff
<EMBED src="/cgi-bin/ubb/Members/sigs/00000085.swf" quality=high WIDTH=500 HEIGHT=60 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|