日期:2014-05-16 浏览次数:20434 次
<head>
<html>
<head>
<script type="text/javascript" src="path/yui.js"></script>
<script type="text/javascript" src="path/swf.js"></script>
<script type="text/javascript" src="path/swfdetect.js"></script>
</head>
<body>
<div id="header"></div>
<div id="content">
<div id="swfdemo"></div>
</div>
<div id="footer"></div>
<script type="text/javascript">
YUI().use('swf',function(Y){
new Y.SWF("#swfdemo", "path/demo.swf");
// 如果只是插入 SWF,不调用 AS的话这样就够了.
// 和Flash 通信需要写 AS3 代码
});
</script>
</body>
</html>