內容簡介
這是一個簡單的短碼,可在文章中包含 SWF。您只需提供圖片的地址(絕對或相對),並將 SWF 插入文章的大小中。當然,您可以通過短碼更改這些尺寸。您還可以提供 flashvars,並更改對象的參數和屬性。您可以為創建的 HTML 對象指定 id 和/或類。
它使用 swfObject2(javascript)以 SWF 嵌入 HTML 頁面。
要求:需要啟用 Javascript,需要 php 4(不確定)。
您還可以訪問插件頁面。
選項說明:
例如,SWF URL:http://www.monsite.com/wp-content/uploads/2011/09/monSWF.swf
定義選項頁面的默認設置。預設文件夾是相對 URL 的基礎。但是,如果默認文件夾是“http://www.mysite.com/wp-content/uploads/2011/09/”,並且您想要訪問“http://www.mysite.com/wp-content/mySWF/myswf.swf”,您可以寫入:“wp-content/mySWF/myswf.swf”。
= 簡單用法短碼 =
提供給短碼的參數是“movie”,並接受不同的 url。
如果 URL 不是絕對的,它始終會指向目錄“http://www.monsite.com/wp-content/”,您只需完成。
這也適用於 wordpress 安裝目錄不是您站點的根目錄的情況,例如:
“http://www.monsite.com/monWP/wp-content/”
要從另一個域或wp-content以外的其他目錄插入 SWF,只需提供絕對 URL。
= 一般設置 =
1/ 您可以通過参数寬度和高度為 SWF 提供寬度和高度。
如果其中一個參數缺失,它將自動調整為原始 SWF 大小。
2/ 您還可以通過參數 ID 和 class 將插入的對象指定為 ID 和 class,以便您可以使用 CSS 進行操作。
如果未指定 ID,它會自動設置為:?bbSWFId“+swf 的名稱
3/ 您可以通過“minfp”參數指定最小的 flash 播放器版本。
默認情況下,它設置為 9.0.0
FlashVar:
您可以通過參數“flashvar?”為導入的 SWF 提供 Flash 變量。不同的 name/value 對必須用字符“&”或“|”分隔。對名稱/值可以是 name1=value1 或 name1:value1 的形式。
進階設置:
1/更改屬性
您可以通過參數“attributes”修改屬性。name/value 對必須用字符“&”、“|”或“,”分隔,並由“= ”或“:”相關聯。
外掛標籤
開發者團隊
原文外掛簡介
Here is a simple shortcode to include swf in your articles. You just have to give the address of the image (absolute or something that approximates to be relative), and the swf is inserted in your article to its own dimensions. Of course you can change these dimensions through the shortcode. You can also provide flashvars and change the parameters and attributes of the object. You can specify an id and/or class for the html object created.
It use swfObject2 (javascript) for swf embedding in the html page.
Requirements
It require Javascript enabled, php 4 (not sure).
You can also visit Plugin Page
Options description
or visit Plugin Page
eg, swf URL : http://www.monsite.com/wp-content/uploads/2011/09/monSWF.swf
Define default settings to the option page. Default folder is the basis for relative url. However, if default folder is “http://www.mysite.com/wp-content/uploads/2011/09/”
and you want access to “http://www.mysite.com/wp-content/mySWF/myswf.swf”, you can write : “wp-content/mySWF/myswf.swf”.
= ShortCode Simple use=
[BB_SWF movie=”http://www.monsite.com/wp-content/uploads/2011/09/monSWF.swf”]
[BB_SWF movie=”/wp-content/uploads/2011/09/monSWF.swf”]
[BB_SWF movie=”wp-content/uploads/2011/09/monSWF.swf”]
[BB_SWF movie=”/uploads/2011/09/monSWF.swf”]
[BB_SWF movie=”uploads/2011/09/monSWF.swf”]
If the url is not absolute, it always will point to the directory “http://www.monsite.com/wp-content/, you just have to complete.
This also works if the wordpress installation directory is not the root of your site, eg:
To insert a swf from another domain, or some other directory than wp-content, just provide an absolute url.
= General Settings=
1/ You can provide a width and height for the swf by the parameters width and height.
[BB_SWF movie=”uploads/2011/09/monSWF.swf” width=”200″ height=”300″]
If one of these two parameters is missing it will be automatically adjusted to the original swf size.
2/ You can also specify an id and a class to the object inserted, so you can play with css, by the parameters id et class :
[BB_SWF movie=”uploads/2011/09/monSWF.swf” id=”monSwfId” class=”swfClassEmbed”]
3/ You can specify the minimm flash player version by the “minfp” parameter :
[BB_SWF movie=”uploads/2011/09/monSWF.swf” minfp=”10.0.0″]
By default it’s set to 9.0.0
FlashVar
[BB_SWF movie=”uploads/2011/09/monSWF.swf” flashvar=”name1=value1&name2:value2|name4=value4″]
Advanced Settings
1/ Changing Attributes
[BB_SWF movie=”uploads/2011/09/monSWF.swf” attributes=”name1=value1&name2:value2|name3=value3,name4=value4″]
for example, to change the alignment of the object:
[BB_SWF movie=”uploads/2011/09/monSWF.swf” attributes=”align:left”]
2/ Changing parameters
For example for a transparent swf (we play on the wmode) and scripts access modification :
[BB_SWF movie=”uploads/2011/09/monSWF.swf” params=”wmode:transparent&allowscriptaccess=always”]
In short, you can edit all the usual parameters.
