Back to top

Autore Topic: Problema modulo lcplayer  (Letto 1174 volte)

Offline salseridellostretto

  • Nuovo arrivato
  • *
  • Post: 26
    • Mostra profilo
Problema modulo lcplayer
« il: 07 Giu 2011, 15:50:59 »
salve ho installato il modulo per la radio lc player vorrei che il lettore media player sia trasparente perchè va in conflitto con altri moduli ho letto che dovrei inserire wmode=transparent ma dove la devo inserire questa riga???
Codice: [Seleziona]
// Identify the browser in use
jimport('joomla.environment.browser');
$browser =& JBrowser::getInstance()->getBrowser();

$default_station  = $params->get('default_station');
$height             = $params->get('height');
$width              = $params->get('width');
$logo               = $params->get('logo');
$logolink           = $params->get('logolink');
$select             = $params->get('select');

$station_count = 0;
for ( $i = 0; $i <= 9; $i++ ) {
    if ( $params->get("link_".$i) ) {
        $station_array[$station_count]['link'] = $params->get("link_".$i);
        if ( $params->get("name_".$i) ) {
            $station_array[$station_count]['name'] = $params->get("name_".$i);
        } else {
            $station_array[$station_count]['name'] = "Unknown name";
        }
    }
    $station_count++;
}
$show = array('logo', 'player', 'select');
if ( $logo == 'yes' ) {
    $logo_width = $width-6;
    $show['logo'] = "<a href=".$logolink." target='_blank'>
    <div style='width:".$logo_width."px; padding:3px; background-color: #C10000;
        font-family:serif;
        font-weight:normal; font-size:12px; color:white;'>Radio Salseri Dello Stretto</div></a>";
}
if ( $browser == "msie" ) {
    $insert = "onChange=\"{document.MediaPlayer.FileName =
        document.MediaPlayer.url=document.getElementById('station').value}\"";

    $show['player'] = "
        <object id='MediaPlayer'
            width='$width'
            height='$height'
            classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'
            standby='Loading Microsoft Windows Media Player components...'
            type='application/x-oleobject'>
            <param name='uiMode' value='mini'>
            <param name='url' value='$default_station'>
            <param name='autoStart' value='true'>
            <param name='PlayCount' value='9999'>
            <param name='stretchToFit' value='True'>
            <param name='enableContextMenu' value='False'>
        </object>";

} else {
    $insert = "onchange='song()' size='1'";
     $show['player'] = "
        <script type='text/javascript'>
        <!--
        function song(){
            document.getElementById('music1').innerHTML
                = \"<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='\"+document.getElementById('station').value+\"' name='MediaPlayer1' width='$width' height='$height' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>\";
        }
        //-->
        </script>";
        $show['player'] .= "
        <div id='jukebox'><span id='music1'>
            <embed type='application/x-mplayer2'
                id='music2'
                pluginspage='http://www.microsoft.com/Windows/MediaPlayer/'
                src='$default_station'
                name='MediaPlayer1'
                width='$width'
                height='$height'
                controltype='2'
                showcontrols='1'
                showstatusbar='1'
                AutoStart='1'>
            </embed></span></div>";

 



Web Design Bolzano Kreatif