织梦 dedecms 实例需求 某网站上需要在首页进行视频展示,后台可以选择上传到土豆、优酷等站外视频,也可以自己手动上传视频到自己 的网站上。(假定)由于自己上传的视频与站外视频
{dede:sql sql='select * from dede_addon17 order by aid desc limit 1'} [field:array runphp='yes'] if (@me['upvideo']=='') @me="<embed src='".@me['sharevideo']."' allowFullScreen='true' quality='high' width='240' height='200' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'></embed>"; else @me="<EMBED height=250 type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer width=270 src=http://www.pusonglin.cn/player/cuplayer.swf flashvars='&CuPlayerFile=http://localhost".@me['upvideo']."& CuPlayerShowImage=true&CuPlayerWidth=270&CuPlayerHeight=250&CuPlayerAutoPlay=true&CuPlayerAutoRepeat=false& CuPlayerShowControl=false&CuPlayerAutoHideControl=false&CuPlayerAutoHideTime=5&CuPlayerVolume=80' quality='high'></EMBED>"; [/field:array] {/dede:sql}