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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    embed a player that fills the frame

    Hi all
    I'm pretty new to all this and badly need some help. What I'm trying to do is pretty much explained in the thread title. I want the player I'm embedding to fill the frame it's in. This is the code I've got in so far:

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Myvid1</title>
    </head>

    <body>
    <div>
    <object width="1140" height="875">
    <embed src="myvid1" type="application/x-shockwave-flash" width="1140" height="875" allowfullscreen="true">
    </embed>
    </object>
    </div>

    </body>

    </html>


    1140 by 875 is fine for my screen but useless to anyone with a different resolution to me.

    Any help very gratefully recieved!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Flash fullscreen</title>
    <style type="text/css">
    html, body {
    margin:0;
    padding:0;
    border:0;
    height:100%;
    }
    </style>
    </head>
    <body>
    <object type="applicaton/x-shockwave-flash" data="myvid1.swf" width="100%" height="100%">
    	<param name="movie" value="myvid1.swf">
    	<param name="scale" value="exactfit">
    	If you are seeing this then it means you do not have the correct flash plugin installed, download it <a href="http://www.adobe.com/go/gntray_dl_getflashplayer">here</a>.
    </object>
    </body>
    </html>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you so so much! Good to know that you can do a percentage rather than an actual number of pixels!

  • #4
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post
    In Web Design terminology, using percent instead of using pixels is called "LIQUID DESIGN".

    With this, you don't need to worry for users who have various screen resolution depth.

  • #5
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Very good to know! My project at the moment is just something for me and my mates to have stored locally which links to loads of videos on dailymotion.com.
    My next query is if I can have a button in the "contents" frame (or so Frontpage calls it) to make the video in the main frame open fullscreen in a new page.
    The way I have it set up is all the episodes in a tree menu system in a small frame down the left hand side then the video playing in the main frame. A fullscreen button would be brilliant though if anyone can help.


  •  

    Posting Permissions

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