View Full Version : POP UP WINDOW
losse
06-19-2001, 02:21 PM
Hello
I want my Flash movie to pop up when a user clicks on a link in my web page. Does anyone know the HTML code so that the window pops up, the size of the flash movie when the user clicks on the link?
Thanks
Carlos
kingarturo
06-19-2001, 03:24 PM
Hi there,
Check this;
http://www.actionscripts.org/tutorials/beginner/PopUp_window_within_flash/index.shtml
Hope that helps.
Peace. :)
losse
06-19-2001, 03:50 PM
Thanks for your help Arturo but what I want is a straight
up html link <a href> ..... </a> that when you click on it the pop up window opens and the flash movie plays....
Thanks
Strok
06-20-2001, 07:14 AM
<HTML>
<HEAD>
<TITLE>actionscripts.org</TITLE>
<script>
<!-- hide it
function open_window(url) {
email = window.open(url,"eMail",'toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=yes,resizable=0,width=750,height= 550');
}
// -->
</script>
</HEAD>
<BODY>
<a href="javascript:open_window('yourpage.shtml')">click here to open</a>
</BODY>
</HTML>
losse
06-21-2001, 02:39 PM
Hello and thanks for your reply I was just wondering what the "email" is for in the tag above that you provided me?!?!?!
Thanks again!
Losse
Strok
06-21-2001, 03:10 PM
It's just a target-name for Pop-up window
There's an example with "eMail" and "eMail2"--- in this case you'll have 2 separate popup-windows
but if you'll change "eMail2" to "eMail" than every time you'll open popup in the same window
<HTML>
<HEAD>
<TITLE>actionscripts.org</TITLE>
<script>
<!-- hide it
function open_window(url) {
email = window.open(url,"eMail",'toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=yes,resizable=0,width=750,height= 550');
}
function open_window2(url) {
email = window.open(url,"eMail2",'toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=yes,resizable=0,width=300,height= 400');
}
// -->
</script>
</HEAD>
<BODY>
<a href="javascript:open_window('blank.htm')">click here to open1</a><br>
<a href="javascript:open_window2('http://www.actionscripts.org/index.shtml')">click here to open2</a>
</BODY>
</HTML>
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.