我们正尝试在本地计算机的浏览器中加载Flash文件,仅在Internet Explorer(IE)中加载,而不是在其他浏览器中加载。请给我一些解决方案。
答案 0 :(得分:0)
您可以从这里下载: http://code.google.com/p/swfobject/downloads/detail?name=swfobject_2_2.zip&can=2&q=
文档在这里: http://code.google.com/p/swfobject/wiki/documentation
你应该把你的代码放在这里,否则我们无法真正帮助你:)
罗布
答案 1 :(得分:0)
这是SWFObject的基本示例:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Embedding FlowPlayer using SWFObject</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/swfobject.js"></script>
<meta name="language" content="en" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<!-- SWFObject downloads and documentation: http://code.google.com/p/swfobject/wiki/documentation -->
<script type="text/javascript">
function embedFlash()
{
var flashvarsObj = {
};
//flashvars.config = config;
var paramsObj = {
allowScriptAccess: "sameDomain",
allowFullScreen: "true"
};
var attributesObj = {};
swfobject.embedSWF("swf/test.swf", "flowplayer_container", "300", "200", "10", "swf/expressInstall.swf", flashvarsObj, paramsObj, attributesObj);
}
</script>
</head>
<body>
<div id="flash_container" style="background-color:#ff0000; width:300px; height:200px;">Your SWF file will be placed here.</div>
<script type="text/javascript">embedFlash();</script>
</body>
</html>
您可以从我之前发送给您的链接下载swfobject.js文件和expressinstall.swf文件。
祝你好运,Rob答案 2 :(得分:0)