Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question flash popup window

    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?

  • #2
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Good old google:

    Try This

    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
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    Working well now thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •