主题 : 怎么显示文*有时是文字,有时是视频。这样写*码图文类型的显示不出来 |
级别: 白丁
![]() |
21# 发表于:2017-07-06 11:36:30 IP:202.34.*.*
|
||||
---|---|---|---|---|---|
级别: 版主
![]() |
22# 发表于:2017-07-06 11:39:45 IP:106.167.*.*
内容页直接用这个
[#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, p:2, i:'${content.titleImg!}', my_url:'${content.url!}', my_pic:'${content.titleImg!}' }; var video=['${content.mediaPath!}->video/mp4']; CKobject.embed('${resSys}/ckplayer/ckplayer.swf','a1','ckplayer_a1','980','500',false,flashvars,video); 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] 你那个是内容列表 |
||
---|---|---|---|
级别: 白丁
![]() |
23# 发表于:2017-07-06 11:41:27 IP:202.34.*.*
回复第22楼
用这个我如果文章是文字的,页面显示出来吗? |
||
---|---|---|---|
级别: 白丁
![]() |
25# 发表于:2017-07-06 11:45:31 IP:202.34.*.*
回复第24楼
<div class="right_content"> [#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, p:2, i:'${content.titleImg!}', my_url:'${content.url!}', my_pic:'${content.titleImg!}' }; var video=['${content.mediaPath!}->video/mp4']; CKobject.embed('${resSys}/ckplayer/ckplayer.swf','a1','ckplayer_a1','980','500',false,flashvars,video); 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] <!-- <div class="news-list-top"><span style="margin-left:10px;">${channel.nodeList[1].name} > ${channel.nodeList[2].name}</span></div> <div class="news-detail-theme">${content.title}</div> <div class="news-detail-abouts">作者:${content.author!'匿名'}    来源: ${content.origin!'本站原创'}    点击数:${content.views}    更新时间:${content.releaseDate}</div> <hr width=100% size=1 color=#e2e2e2> <div class="news-detail-text"> <P>${txt!}</P> </div> --> </div> </div> 这样?视频也没有显示出来 |
||
---|---|---|---|
级别: 白丁
![]() |
27# 发表于:2017-07-06 11:48:23 IP:202.34.*.*
回复第26楼
上传了MP4的 |
||
---|---|---|---|
级别: 白丁
![]() |
29# 发表于:2017-07-06 11:51:17 IP:202.34.*.*
回复第28楼
![]() 回复里面插入不了图片吗? |
||
---|---|---|---|
级别: 白丁
![]() |
30# 发表于:2017-07-06 11:53:26 IP:202.34.*.*
回复第29楼
![]() ![]() |
||
---|---|---|---|