View Full Version : flash popup window

12-17-2007, 01:09 AM
On my website I have a link which opens up a flash movie. So far I have it opening up in a new window without a problem.

Does anyone know how I would be able to set the height and width of the new window to the hieght and width of the flash movie.

(the flash movie changes so the WxH changes for each movie)

I am using PHP to find the vid#

this is the code I am using at the moment:
<a href="uploads/'.$vid.'" target="_blank">Play Flash</a>

Any suggestions?

12-17-2007, 09:33 AM
Good old google:

Try This (http://www.pageresource.com/jscript/jwinopen.htm)

Remember though, it's not a good or acceptable thing to do because you are changing what your users expect. If they want a different sized window they will resize it themselves. I'd suggest you put a warning on the link saying it'll resize in a new window.

target="_blank" - just so you know, this is deprecated now and you really shouldn't use it. The method in the link uses javascript, which can only be used dependant upon whether the client has it enabled. Also, it'll probably only work properly in IE

12-17-2007, 11:23 AM
Thanks for that...

I guess I could use the new window javasctipt as well as a script to find the height and width of the original flash movie on a site like this

Finding the Dimensions of the Player in Flash (http://www.r-hansen.com/tech/flash.html)

Working well now :thumbsup: thanks