jsp页面加载flash_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > jsp页面加载flash

jsp页面加载flash

 2012/1/13 9:06:34  jw_long  程序员俱乐部  我要评论(0)
  • 摘要:所需的js文件<scripttype="text/javascript"src="../../js/common/jquery.min.js"></script><scripttype="text/javascript"src="../../js/common/swfobject2.2.js"></script><scripttype="text/javascript"src="../../js/common/flowplayer-3.2
  • 标签:Flash JS

所需的js文件

<script type="text/javascript" src="../../js/common/jquery.min.js"></script>
<script type="text/javascript" src="../../js/common/swfobject2.2.js"></script>
<script type="text/javascript" src="../../js/common/flowplayer-3.2.6.min.js"></script>

?

实现的脚本

<script type="text/javascript">
	var flashvars = {};
	var attributes = {};
	//主要视频不可以自动播放
	var params = {};
	params.play = "false";
	params.loop = "false";
	params.menu = "false";
	params.quality = "high";
	params.scale = "noscale";
	params.wmode = "transparent";

	//广告等SWF可以自动播放
	var bannerParams = {};
	bannerParams.play = "true";
	bannerParams.loop = "true";
	bannerParams.menu = "false";
	bannerParams.quality = "high";
	bannerParams.scale = "noscale";
	bannerParams.wmode = "transparent";

	swfobject.embedSWF("../../swf/donghuan.swf", "bannerSwf", "960", "252",
			"9.0.0", "../../swf/expressInstall.swf", flashvars, bannerParams,
			attributes);
</script>

?

页面

<div id="bannerSwf"></div>
  • js.rar (40.4 KB)
  • 下载次数: 0
发表评论
用户名: 匿名