Web- und Software Development

EmbeddedValidSwf – PHP Snippet

Written By: Mario Priebe - Jul• 01•09

Und wenn wir schon dabei sind, hier ein kleines phpSnippet dazu : )

1
2
3
4
5
6
7
function EmbeddedValidSwf($url, $height, $width)
{               
    $valideVideo ='<object type="application/x-shockwave-flash" data="'.$url.'" width="'.$width.'" height="'.$height.'">
                   <param name="src" value="'.$url.'" />                       
                   </object>';
    return $valideVideo; 
}

Das Snippet ist recht einfach gehalten. Die Parameter für die swf sollte man dann noch, je nach Einsatz ergänzen…

1
2
<param name="AllowFullscreen" value="true" />
<param name="AllowScriptAccess" value="always" />

Ähnliche Beiträge

You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.