HTML动态嵌入Flash embedSWF

码农软件 · 软件分类 · Flash开发包 · 2019-04-03 19:41:50

软件介绍

embedSWF 是一个轻量的HTML动态嵌入Flash的方案。gzip之前,仅3kb大小!比swfobject要小很多。

简洁的API,所有object和embed标记支持的参数都通过一个options传递。甚至支持在options中传递"style"、"class"等参数控制样式。唯一必传的一个参数就是options中的src参数(确定flash的地址)

可以直接拿到AMD或者SeaJS的环境当做模块使用。

一般使用方式

1. 将embedSWF.js 和 expressInstall.swf 两个文件放在同一目录中

2. 网页中包含 embedSWF.js:

<script type="text/javascript" src="path/to/embedSWF.js"></script>

3. 嵌入flash:

embedSWF('someId', {
    src: 'path/to/flash.swf',
    width: 640,
    height: 320
});

4. 销毁页面中的flash:

embedSWF.destroy('someId');

本文地址:https://codercto.com/soft/d/2794.html

Just My Type

Just My Type

Simon Garfield / Profile Books / 2010-10-21 / GBP 14.99

What's your type? Suddenly everyone's obsessed with fonts. Whether you're enraged by Ikea's Verdanagate, want to know what the Beach Boys have in common with easy Jet or why it's okay to like Comic Sa......一起来看看 《Just My Type》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具