只需一步,快速开始
//视频 function blog_flash($swf_url, $type='') { $width = '520'; $height = '390'; if ($type == 'media') { $html = '<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" width="'.$width.'" height="'.$height.'"> <param name="autostart" value="0"> <param name="url" value="'.$swf_url.'"> <embed autostart="false" src="'.$swf_url.'" type="video/x-ms-wmv" width="'.$width.'" height="'.$height.'" controls="imagewindow" console="cons"></embed> </object>'; } elseif ($type == 'real') { $html = '<object classid="clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa" width="'.$width.'" height="'.$height.'"> <param name="autostart" value="0"> <param name="src" value="'.$swf_url.'"> <param name="controls" value="Imagewindow,controlpanel"> <param name="console" value="cons"> <embed autostart="false" src="'.$swf_url.'" type="audio/x-pn-realaudio-plugin" width="'.$width.'" height="'.$height.'" controls="controlpanel" console="cons"></embed> </object>'; } else { $html = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'.$width.'" height="'.$height.'"> <param name="movie" value="'.$swf_url.'"> <param name="allowscriptaccess" value="always"> <param name="wmode" value="transparent"> <embed src="'.$swf_url.'" type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" allowfullscreen="true" wmode="transparent" allowscriptaccess="always"></embed> </object>'; } return $html; }
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-11-18 14:30 , Processed in 0.023886 second(s), 3 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.