Revision [15834]

This is an old revision of QuickTimeAction made by FilippL on 2007-01-03 13:04:56.

 

QuickTime Action

For quickly embedding QuickTime movies in Wikka:
<?php
/*
    "quicktime" action
    (cc) Filipp Lepalaan <filipp@mac.com>
    Parameters:
        url     - url of quicktime movie
        ref     - url of ref movie
        width
        height
        class   - CSS class name
*/


$id = 'qt_' . time ();

if (is_array ($vars))
{
    foreach ($vars as $param => $value)
    {
        if ($param == 'url')    { $url = $this->cleanUrl (trim ($value)); }
        if ($param == 'ref')    { $ref = $this->htmlspecialchars_ent ($value); }
        if ($param == 'width')  { $width = $this->htmlspecialchars_ent ($value); }
        if ($param == 'height') { $height = $this->htmlspecialchars_ent ($value); }
        if ($param == 'class')  { $class = $this->htmlspecialchars_ent ($value); }
    }
}

print ("
<div class='$class'>
    <script type='text/javascript' language='JavaScript'>
        QT_WriteOBJECT (
            '$url', $width, $height+15, '',
            'controller', 'true',
            'autoplay', 'false',
            'id', '$id');
    </script>
</div>\n"
);

?>



CategoryUserContribution
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki