
內容簡介
Flash Show And Hide Box 允許我們方便地嵌入 Flash,並控制它的顯示和隱藏。
有時我們需要在頁面上嵌入 Flash,但加載 Flash 會使頁面顯示緩慢並增加流量。Flash Show And Hide Box 外掛可在訪問者點擊方框時嵌入 Flash。
點擊方框首次顯示 Flash,再次點擊隱藏 Flash。
相關鏈接:
外掛主頁面
作者主頁面
更多使用範例
GitHub 上的頁面
使用方法
API,初始化 Flash 方框
showFlashLib.initBox(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, flashvarsObj, parObj, attObj);
API,創建 Flash 方框
showFlashLib.createBox(swfUrlStr, widthStr, heightStr, swfVersionStr, flashvarsObj, parObj, attObj);
引數:
swfUrlStr(字串,必需):指定 SWF 檔的 URL
replaceElemIdStr(字串,必需):指定要由 Flash 內容替換的 HTML 元素的 ID(包含您的替代內容)
widthStr(字串,必需):指定 SWF 的寬度
heightStr(字串,必需):指定 SWF 的高度
swfVersionStr(字串,必需):指定 SWF 發佈的 Flash 播放器版本(格式為:“主.次.釋放”或“主要版本”)
flashvarsObj(物件,可選):指定名稱:值對的 flashvars
parObj(物件,可選):指定名稱:值對的巢狀物件元素參數
attObj(物件,可選):指定名稱:值對的您的物件屬性
範例 1:推薦的用法,在未啟用 JavaScript 時顯示文字。
this is my flash
showFlashLib.initBox("myflash.swf", "myflash",600,170);
範例 2:簡潔的用法。
showFlashLib.createBox("myflash.swf",600,170);
範例3:使用 UBB 代碼。
語法:
[flash={width},{height}]{swf 檔案 URL}[/flash]
例子:
[flash=600,170]myflash.swf[/flash]
外掛標籤
開發者團隊
原文外掛簡介
Flash Show And Hide Box lets we very convenient embed flash, and control it show and hide.
Some times we need embed flash at my page, but load flash will be slowly show this page and increase stream. Flash Show And Hide Box plugin will enbed flash at visitor click box.
The first click box show flash, clicks again hides the flash.
Related Links:
Plugin Homepage
Author Homepage
More usage examples
on GitHub
Usage
API, initialize an flash box
showFlashLib.initBox(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, flashvarsObj, parObj, attObj);
API, create an flash box
showFlashLib.createBox(swfUrlStr, widthStr, heightStr, swfVersionStr, flashvarsObj, parObj, attObj);
Arguments:
swfUrlStr (String, required) specifies the URL of your SWF
replaceElemIdStr (String, required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content
widthStr (String, required) specifies the width of your SWF
heightStr (String, required) specifies the height of your SWF
swfVersionStr (String, required) specifies the Flash player version your SWF is published for (format is: “major.minor.release” or “major”)
flashvarsObj (Object, optional) specifies your flashvars with name:value pairs
parObj (Object, optional) specifies your nested object element params with name:value pairs
attObj (Object, optional) specifies your object’s attributes with name:value pairs
Example 1: The recommended usage, the text will by display when javascript is not enabled.
this is my flash
showFlashLib.initBox("myflash.swf", "myflash",600,170);
Example 2: The succinct usage.
showFlashLib.createBox("myflash.swf",600,170);
Example 3: The ubb code usage.
The syntax:
[flash={width},{height}]{swf file url}[/flash]
The example:
[flash=600,170]myflash.swf[/flash]
