View Full Version : Opening New Windows
Dudex
08-19-2001, 02:42 PM
So, umm... how do you open up new windows and configure their properties? You know, like width, height etc... Is it the same as javascript? If so where do i put it?
Thanks
friend_al_23
08-20-2001, 12:46 PM
Is this about the flash again? If it is, I would also like to know how. If it is about the HTML thing, how do I remove the menu bars when I put it in pop-ups?
Dudex
08-20-2001, 01:40 PM
This is about flash. You know, opening a new window in flash and configuring it's properties. I want to know how you do that?
petervazed
08-20-2001, 02:59 PM
POPup in html:
====== POP UP vol=====
Opening a basic 300x300 window
<A HREF="javascript:void(0)"
ONCLICK="open('sample.htm','miniwin','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resi zable=1,width=300,height=300')">Open a Window</A>
=====nw TMF====
<A HREF="javascript:void(0)"
ONCLICK="open('ar_pop1.html','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,re sizable=1,width=450,height=400')">Open een voorbeeld</A>
=====1 =POPUP Window
Opening the window with all features turned off
<A HREF="javascript:void(0)"
ONCLICK="open('sample2.htm','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,res izable=0,width=450,height=350')">Voorbeeld</A>
==
======2===
<A HREF="javascript:void(0)"
ONCLICK="open('knar_index.html','miniwin','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1 ,resizable=1,width=650,height=400')">Voorbeeld</A>
=============CLOSE Button
Adding a "close window button"
The close window button is nice to offer the reader. It can be in the form of a button, image, or a text link.
Button link:
<br> <center><form><input TYPE="button" VALUE="Sluit Venster" onClick="window.close()"></form>
</center> <BR>
Text link: <a href="javascript:window.close()"><B>CLOSE WINDOW</B></a>
<BR>
Image link: <a href="javascript:window.close()"><IMG SRC="closeme.gif" BORDER=0 ALT="CLOSE ME"></a>
=============
Flash I don't know......
Dudex
08-20-2001, 04:40 PM
Thanks, but I already know how to do that in html, but i'm sure somebody else will gain knowledge from that. I just need to know how to configure the properties of a pop-up window in flash.
friend_al_23
08-20-2001, 07:00 PM
Originally posted by Dudex
Thanks, but I already know how to do that in html, but i'm sure somebody else will gain knowledge from that. I just need to know how to configure the properties of a pop-up window in flash.
Yes. Someone like me :D
jog1973
08-23-2001, 02:32 PM
This is a very easy task. For this to work, there are a few solutions, and I will give you my favorite.
There are two things you need to do here. This example is done on PC. Mac users, there are few differences, mostly with hot keys.
1. In the web document (html/asp/jsp/whatever) that you will embed the flash movie into, you need a script, in this case a javascript.
---here is the script: copy and paste into the 'head' area of your web doc
<script language="javascript">
<!-- hide me from old browsers
//when you call the function in the flash movie, add the url and features you want.
//
//you do NOT have to add any features. but the ones you can add are numerous.
//width, height, location, menu, toolbar, scrollbars, resizable
//for example: 'width=600,height=400,toolbar=1,resizable=1'
//1 = true or yes
//0 = no or false
//if you leave out any features, they are false by default
//again, you will add the URL and features in the FLASH movie, not here
function popup(url,features){
var new_window = window.open(url,'new_window',features);
new_window.focus();
}
//stop hiding me
</script>
2. In flash, create a button. Click the button once to highlight it. Open the actions panel. If you are in Normal mode, open the basic actions. Double click on "getURL". In the 'URL' field that now appears, you need to call the javascript function you added to the web doc you are going to embed this movie into. add any 'features you want' here...
The following goes into the URL field:
javascript: popup('URL,'features')
(there should be NO space in 'javascript'. For some reason, it appears that way here)
in my example, I entered this string into the 'URL' field:
javascript: popup('http://www.yahoo.com','width=600,height=600,resizable=1,scrollbars=1,location=1')
(there should be NO space in 'javascript'. For some reason, it appears that way here)
wala, publish movie and html file, add the javascript to your 'head' area, and you are done.
again, all the features are customizable. add and subtract whatever you want.
the files are attached to look at...
**** Be sure to RE-NAME the file extension when saving. Change '.php' to '.zip' ****
cheers, john
Dudex
08-25-2001, 12:03 PM
Thanks
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.