在页面中插入flash播放器
来源:互联网 发布:pptv网络电视官方 编辑:程序博客网 时间:2024/06/04 18:49
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>视频</title>
<script src="/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jQuery.blockUI.js"></script>
<script type="text/javascript">
function writeVideo(src, w, h) {
var vtype = src.split(".");
videotype = vtype[1];
var videcode = '';
switch (videotype) {
case "flv":
videcode += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + w + '" height="' + h + '">';
videcode += '<param name="movie" value="vcastr.swf"';
videcode += '<param name="quality" value="high">';
videcode += '<param name="allowFullScreen" value="true" />';
videcode += '<param name="FlashVars" value="vcastr_file=' + src + '&LogoUrl=&LogoText=" />';
videcode += '<embed src="vcastr.swf" allowFullScreen="true" FlashVars="vcastr_file=' + src + '" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '" ></embed>';
videcode += '</object>';
break;
}
document.writeln(videcode);
}
</script>
</head>
<body>
<script type="text/javascript">
writeVideo("qiqi.flv", 320, 240);
</script>
</body>
</html>
0 0
- 在页面中插入flash播放器
- 在页面中插入播放器
- 在页面中插入播放器
- 如何在页面中插入播放器
- 在页面中插入flash
- 在HTML页面中插入Flash
- 页面中使用flash播放器
- 在PPT中播放插入flash的指定片段
- 在网页中插入Flash播放器代码的小技巧
- 如何在html页面中插入flash透明背景
- 怎么在JSP里面插入Flash播放器
- PowerPoint中插入并控制Flash播放
- 在winform中播放FLASH
- 在FLASH中插入“网页”
- 在powerpoint中插入flash
- 在excel中插入Flash
- 在网页中插入flash
- 在Html中插入flash
- 【转载】JS实现淘宝 放大镜效果
- 首页banner图轮播效果
- 背景图片切换效果
- 弹出层设置z-index后在浏览器中的兼容性
- ie兼容问题
- 在页面中插入flash播放器
- SSM框架——详细整合教程(Spring+SpringMVC+MyBatis)
- 让IE浏览器支持CSS3圆角属性的方法
- gulp
- sql2008r2配置工具远程调用失败解决方法
- 谷歌地图demo
- DropDownList使用报错解决方法
- 3分钟学会用导入表格数据到云端的正确姿势~
- 自定义AlertDialog布局