all groups > flash (macromedia) > february 2004 >
You're in the

flash (macromedia)

group:

open pop-up window


open pop-up window Roughouse Designs
2/29/2004 9:04:52 PM
flash (macromedia):
does anyone know how to open a pop-up window ( a specific size, like 240 x 400) when clicking on a link?
and how to add a button to that pop-up window that will close the window out?

thanks
Re: open pop-up window oRm
2/29/2004 9:17:32 PM
Try this one

<script language="JavaScript" type="text/javascript">
<!--
function popup()
{

window.open("url","popup","width=400,height=310,left=300,screenX=300,top=170
;screenY=170");
}
//-->
</script>
and this is the trigger...
<a href="javascript:popup();">

oRm



"Roughouse Designs" <webforumsuser@macromedia.com> skrev i meddelandet
news:c1tk5k$2u6$1@forums.macromedia.com...
[quoted text, click to view]

Re: open pop-up window Laiverd.COM
2/29/2004 10:43:30 PM
Check below google link for 'popup'. Thousands of posts on the subject
before.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: open pop-up window Roughouse Designs
2/29/2004 11:41:24 PM
Cool. Thanks. I found one.

One more question. I have 3 buttons on the same page, all opening up popups.
I have my first button coded as:

on (release) {
getURL ("JavaScript:pop();");
}

and i have the following code in my html document to correspond:

<SCRIPT LANGUAGE="JavaScript">
function pop() {
window.open("webbronze.html","","height=400,width=325,left=0,top=0");
}
</SCRIPT>

but now i am not sure how i code the next two buttons. I know there has to be
something in the coding to tell them apart from each other but i am not sure
what that is. Any ideas?

Re: open pop-up window urami_
3/1/2004 7:45:31 AM

[quoted text, click to view]

you found lousiest one :)

check and read carefully about the new window stuff :

http://groups.google.com/groups?q=new_name+group:macromedia.flash.*+author:urami_&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=3E6AD3C1.6AEA9976%40FlashFugitive.com&rnum=2



Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>

AddThis Social Bookmark Button