1、调用JS代码:
<script type="text/javascript" src="js/swfobject.js"></script>
<script type=text/javascript>
var flashvars = {};
flashvars.xml = "config.xml";
var params = {};
params.allowscriptaccess = "always";
params.allownetworking = "all";
params.wmode = "transparent";
var attributes = {};
attributes.id = "slider";
swfobject.embedSWF("cu3er.swf", "cu3er_swf", "960", "360", "9", flashvars, params, attributes);
</script>
2、添加HTML代码:
加入
<!--效果html开始-->......
<!--效果html结束-->之间的html代码;放在<body></body>之间。