出于某种原因,我无法让我的.swfs在Chrome中运行。其他所有浏览器都没问题。我环顾谷歌,似乎有很多人遇到这个问题,Chrome的解决方案是使用swfobject。我这样做了,没有运气。这是我的整个页面代码。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject - step 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<%--<script type="text/javascript" src="https://www.google.com/jsapi?key=ABQIAAAAiqv4uHcykNss4U3_P3puRhTBYAgU_PpjylffbLpF6KL0i7hK2RSjPV4WQhEZn1ZmeAyjiTjPuaNCiA"></script>--%>
<script src="js/swfobject.js"></script>
</head>
<body>
<div id="productVideo">Video goes here</div>
<script type="text/javascript">
var flashvars = {
'file': 'playlist.xml',
'autostart': 'true'
};
var params = {
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'bgcolor': '#ffffff'
};
var attributes = {
'id': 'player1',
'name': 'player1'
};
swfobject.embedSWF("/flash/DatabaseAccess.swf", "productVideo", "600", "600", "10", "false", flashvars, params, attributes);
</script>
</body>
</html>