jQuery访问Flash的一个插件

一个Rails3的项目要使用Open Flash Chart,找到一个不错的jQuery插件:http://jquery.thewikies.com/swfobject/

下面是一个例子:

 

<div style="text-align: center;">
	<div id="celerant" style="padding: 10px;"></div>
	<input type="button" onClick="$('#celerant').flash({swf:'sine.swf',height:250,width:300});" value="Add Flash">
	<input type="button" onClick="$('#celerant').flash().remove();" value="Remove Flash">
</div>

 

非常的简介和自然。

你可能感兴趣的:(jquery,Flash)