this is the index.htm doc which is supposed to run a .swf file, the page just loads and nothing happens, the flash doesnt play, any help?
开发者_StackOverflow中文版<html>
<head>
<title>My Website </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {allowFullScreen:true};
var attributes = {};
swfobject.embedSWF("preview.swf", "nav", "100%", "100%", "9.0.0", "expressInstall.swf",flashvars,params,attributes);
</script>
<style>
body{
margin-left:0px;
margin-top:0px;
margin-right:0px;
margin-bottom:0px;
}
</style>
</head>
<body>
<div id="content" align="center">
<div id="nav">
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</body>
</html>
Have you added the link to the SwfObject JS file
Have you also uploaded the swfobject.js file to the server?
Try setting a min-height on your nav div:
div#nav { min-height:100px; }
精彩评论