看了一眼底下人写的代码,一个嵌入flash,弄的乱七八糟好几十行,没憋住火。老规矩,不能光发火,还应进行有效的指导。
搜了搜,这个不错:http://code.google.com/p/swfobject/wiki/documentation
写了个例子(swfobject2.2)
<!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 type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
<!--
#flashcontent {
height: 585px;
width: 293px;
}
-->
</style>
</head>
<script>
swfobject.embedSWF("guaguale.swf", "flashcontent", "585", "293", "9.0.0");
</script>
<body leftmargin="0" topmargin="0">
<div id="flashcontent"></div>
</body>
</html>