如何给页面添加fa

1.使用标签

<object width="550" height="400">
    <param name="allowScriptAccess" value="always" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="flash/this-changes-everything.swf" />
    <param name="loop" value="false" />
    <embed src="flash/this-changes-everything.swf" loop="false"
        allowScriptAccess="sameDomain"
        allowFullScreen="false" width="550" height="400" />
</object>

2.使用js:要引入swfobject.js,定义一个带id的div

<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8">
<title>Adding a flash movie with SWF Object</title>
</head>
<body>
    <div id="flash_movie">This element can contain content
    that search engines can index, and which is helpful to
    those who do not have Flash installed.</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
    swfobject.embedSWF("flash/this-changes-everything.swf",
    "flash_movie", "550", "400", "8.0.0");
</script>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/qq_33179811/article/details/89238835
fa