Login   Register  
PHP Classes
elePHPant
Icontem

File: exemplo_2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Otavio Theiss  >  GOOX_SWFOBJECT  >  exemplo_2.php  >  Download  
File: exemplo_2.php
Role: Example script
Content type: text/plain
Description: Exemplo 2
Class: GOOX_SWFOBJECT
Embed Flash objects in Web pages
Author: By
Last change:
Date: 2008-06-16 20:56
Size: 947 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <script type="text/javascript" src="<?=$path_url;?>lib/swfobject.js"></script> 
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      
      <title>Exemplo 2</title>
      </head>
        <body>
<?
            
require_once 'inc/config_inc.php';
            
            
$obSWF     = new GOOX_SWFOBJECT();
            
            
$player_w 300;
            
$player_h 185;
            
// coloque um video em formato flv no diretotio "images/movie/"
            
$arrVars  = array(
                                                
"width"                 => $player_w,
                                                
"height"                 => $player_h,
                                                
"file"                     => $path_url."images/movie/11.flv",
                                                
"autostart"         => "false"
                                            
);
            echo 
$obSWF->getSWFOBJECT("images/swf/player.swf","player",$player_w,$player_h,$arrVars);
            
?>        
        </body>
    </html>