Title: JJ SwfObject
Author: jjcoder
Published: <strong>2011 年 2 月 15 日</strong>
Last modified: 2011 年 3 月 7 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/jj-swfobject.svg)

# JJ SwfObject

 作者：[jjcoder](https://profiles.wordpress.org/jjcoder/)

[下载](https://downloads.wordpress.org/plugin/jj-swfobject.1.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/jj-swfobject/#description)
 * [评价](https://cn.wordpress.org/plugins/jj-swfobject/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/jj-swfobject/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/jj-swfobject/#developers)

 [支持](https://wordpress.org/support/plugin/jj-swfobject/)

## 描述

Allows you to insert a swf file using a widget or a shortcode.

You can specify the following parameters:

NOTE: sc means shortcode:

 * Title: Title. Leave blank for no title. (sc: title=”My Title”)
 * Alternate Content. Content to display if can’t embed flash. (sc: alt=”Flash required”)
 * HTML id: HTML id to use. Defaults to ‘jj_swfobject’. Needs to be different for
   multiple instances on same page. (sc: html_id=”jj_swfobject”)
 * Path: Rath to swf. (sc: title=””)
 * Width: Width of swf. (sc: width=””)
 * Height: Height of swf. (sc: height=””)
 * Version: Flash version required. Defaults to ‘9.0.0’. (sc: version=””)
 * Flashvars: Fashvars for swf. eg, {name1:”hello”,name2:”world”,name3:”foobar”}(
   sc: flashvars=””)
 * Params: Params for swf. eg, {menu:”false”} (sc: params=””)
 * Attributes: Attributes for swf. eg, {id:”myDynamicContent”,name:”myDynamicContent”}(
   sc: attributes=””)

Check out swfobject documentation for more info. (http://code.google.com/p/swfobject/
wiki/documentation)

Shortcode Examples:

 * [jj-swfobject path=”/mypath” html_id=”banner” width=”200″ height=”200″ version
   =”9.0.0″]

Try out my other plugins:

 * JJ NextGen JQuery Slider (https://wordpress.org/extend/plugins/jj-nextgen-jquery-
   slider/)
 * JJ NextGen JQuery Carousel (https://wordpress.org/extend/plugins/jj-nextgen-jquery-
   carousel/)
 * JJ NextGen JQuery Cycle (https://wordpress.org/extend/plugins/jj-nextgen-jquery-
   cycle/)
 * JJ NextGen Unload (https://wordpress.org/extend/plugins/jj-nextgen-unload/)
 * JJ NextGen Image List (https://wordpress.org/extend/plugins/jj-nextgen-image-
   list/)

### Contributors

## 屏幕截图

[⌊Widget controls.⌉⌊Widget controls.⌉[

Widget controls.

## 安装

Please refer to the description for requirements and how to use this plugin.

 1. Copy the entire directory from the downloaded zip file into the /wp-content/plugins/
    folder.
 2. Activate the “JJ SwfObject” plugin in the Plugin Management page.
 3. Refer to the description to use the plugin as a widget and or a shortcode.

## 常见问题

Question:

 * How can I upload swf files using wordpress Media?

Answer:

 * Try adding code below to your functions.php file
 * if ( ! function_exists( ‘add_my_mime_types’ ) ) :
    function add_my_mime_types(
   $existing_mimes=array()) { $existing_mimes[‘swf’] = ‘application/x-shockwave-
   flash’; return $existing_mimes; } endif; add_filter(‘upload_mimes’, ‘add_my_mime_types’);

Question:

 * How can I use plugin inside normal PHP code?

Answer:

 * echo do_shortcode(‘[jj-swfobject path=”/mypath” html_id=”banner” width=”200″ 
   height=”200″ version=”9.0.0″]’);

Question:

 * Doesn’t work after upgrade? or Doesn’t work with this theme?

Answer:

 * Please check that you don’t have two versions of jQuery loading, this is the 
   problem most of the time. Sometimes a theme puts in 
    tags at the end of newlines
   aswell.

## 评价

此插件暂无评价。

## 贡献者及开发者

「JJ SwfObject」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ jjcoder ](https://profiles.wordpress.org/jjcoder/)

[帮助将「JJ SwfObject」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/jj-swfobject)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/jj-swfobject/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/jj-swfobject/)，或通过[RSS](https://plugins.trac.wordpress.org/log/jj-swfobject/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/jj-swfobject/)。

## 更新日志

 * 1.0.5: FAQ.
 * 1.0.4: Donate to Christchurch Quake.
 * 1.0.2: Readme.
 * 1.0.1: FAQ.
 * 1.0.0: First version.

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**15 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **3.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/jj-swfobject/)
 * 标签
 * [flash](https://cn.wordpress.org/plugins/tags/flash/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [swf](https://cn.wordpress.org/plugins/tags/swf/)[swfobject](https://cn.wordpress.org/plugins/tags/swfobject/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/jj-swfobject/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/jj-swfobject/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/jj-swfobject/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/jj-swfobject/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/jj-swfobject/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/jj-swfobject/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/jj-swfobject/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/jj-swfobject/reviews/)

## 贡献者

 *   [ jjcoder ](https://profiles.wordpress.org/jjcoder/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/jj-swfobject/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.redcross.org.nz/donate)