主题 : 关于多媒体
级别: 解元
UID: 58497
积分:327 加为好友
威望: 17 精华: 0
主题:25 回复:148
注册时间:2014-02-28
在线时长:0
1#   发表于:2015-12-04 16:35:10  IP:113.15.*.*
你好,怎么调用多媒体,标签是什么,谢谢
http://www.mtaiyi.com/
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
2#   发表于:2015-12-04 16:36:08  IP:182.183.*.*
[#if content.mediaPath?? && content.mediaType??]
        <p style="margin: 5px auto; text-align: center">
        [#if content.mediaType=='FLV'] 
        <object height="500" width="98%" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
        <param name="movie" value="/${res}/img/flvplayer.swf" />
        <param name="quality" value="high" />
        <param name="allowFullScreen" value="true" />
        <param name="FlashVars" value="vcastr_file=${content.mediaPath!}&BufferTime=3" /><embed height="500" width="98%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" flashvars="vcastr_file=${content.mediaPath!}" allowfullscreen="true" src="/${res}/img/flvplayer.swf"></embed>
        </object>
        [#elseif content.mediaType=='FLASH'] 
        <embed height="500" width="98%" type="application/x-shockwave-flash" quality="high" src="${content.mediaPath}" wmode="transparent" align="center"></embed>
        [#elseif content.mediaType=='CK']
            <!--ckplayer播放视频-->
            <div id="video" style="position:relative;z-index: 100;width:960px;height:500px;float: left;"><div id="a1"></div></div>
     <script type="text/javascript">
     //函数名称不允许更改 function ckmarqueeadv(){return '广告内容'};
var flashvars={f:'${content.mediaPath!}',c:0,b:1,my_url:'${content.url!}',my_pic:'${content.typeImg!}'};
var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always'};
CKobject.embedSWF('${resSys}/ckplayer/ckplayer.swf','a1','ckplayer_a1','980','500',flashvars,params);
var box = new LightBox();
function closelights(){//关灯
box.Show();
}
function openlights(){//开灯
box.Close();
}
</script>
        [#else] 
        <embed height="500" width="98%" type="video/x-ms-wmv" src="${content.mediaPath}" console="cons" controls="ImageWindow" autostart="true"></embed>
        [/#if]
        </p>
     [/#if]
1
级别: 贡士
UID: 17063
积分:772 加为好友
威望: 0 精华: 0
主题:0 回复:651
注册时间:2011-03-18
在线时长:0
3#   发表于:2015-12-05 09:02:50  IP:125.174.*.*
学习
FreeCMS功能强大、开源、代码通俗易懂、注释详细、面向二次开发友好!
1 共1页