Flash Show And Hide Box
Flash Show And Hide Box 是wordpress的一个插件.它能方便的在网页中嵌入flash并控制其显示和隐藏.
有时我们的网页需要显示flash,但是一开始就显示flash会拖慢页面显示的速度,而且如果flash比较大,就会增大我们空间的流量使用,Flash Show And Hide Box在用户点击控制栏后才会加载flash.
工作流程
- 初始化完成后显示一个漂亮的控制栏,上面显示”点击显示flash”
- 点击控制栏后,控制栏上显示为”点击隐藏flash”,并显示flash
- 再次点击控制栏后便回到第一步,一直往复这个流程
适用版本
wordpress 3.0 或更高
安装方法
- 将压缩包解压到 {WordPress 根目录}/wp-content/plugins/.
- 登录你的 WordPress 后台, 到 Plugins 页面激活插件 Flash Show And Hide Box.
截图
后台设置界面

页面未显示flash的界面

页面显示了flash的界面

用法
**API, 初始化一个flash盒子**
showFlashLib.initBox(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, flashvarsObj, parObj, attObj);
**API, create an flash box**
showFlashLib.createBox(swfUrlStr, widthStr, heightStr, swfVersionStr, flashvarsObj, parObj, attObj);
参数说明:
- swfUrlStr (String, 必须) flash的url地址
- replaceElemIdStr (String, 必须) html元素的id,这个元素将被flash替代
- widthStr (String, 必须) flash的宽度
- heightStr (String, 必须) flash的高度
- swfVersionStr (String, 必须) 可运行的最低的flash player版本号(格式为: "major.minor.release" or "major")
- flashvarsObj (Object, 可选的) 传递给flash的参数,key/value格式
- parObj (Object, 可选) 传递给flash player的参数,key/value格式
- attObj (Object, 可选) 传递给html对象的属性,key/value格式
Example 1:推荐的用法,javascript不可用的时候依然能够显示替换的内容
<div id="myflash">this is my flash</div>
<script type="text/javascript">
showFlashLib.initBox("http://example.com/example.swf", "myflash",600,170);
</script>
Example 2: 简便的用法
<script type="text/javascript">
showFlashLib.initBox("http://example.com/example.swf", "myflash",600,170);
</script>
Example 3: UBB代码用法
语法:
[flash={宽度},{高度}]{swf文件url}[/flash]
示例:
[flash=600,170]http://example.com/example.swf[/flash]
插件下载
Flash Show And Hide Box For WordPress
更新日志
http://wordpress.org/extend/plugins/flash-show-and-hide-box/changelog/
» 转载请注明来源:LiteFeel.com » 《Flash Show And Hide Box》

@haol
是因为你的/wp-content/plugins/flash-show-and-hide-box/js/这个目录没有权限,设置为777就行了.
Warning: file_put_contents(/home/ftp/1520/ict_yt6_cn-20120818-TLs/ict.yt6.cn/wp-content/plugins/flash-show-and-hide-box/js/showflash.js) [function.file-put-contents]: failed to open stream: Permission denied in /home/ftp/1520/wp-content/plugins/flash-show-and-hide-box/flash-show-and-hide-box.php on line 330
Warning: filemtime() [function.filemtime]: stat failed for /home/ftp/1520/ict_yt6_cn-20120818-TLs/ict.yt6.cn/wp-content/plugins/flash-show-and-hide-box/js/showflash.js in /home/ftp/1520/wp-content/plugins/flash-show-and-hide-box/flash-show-and-hide-box.php on line 331
老大这个是什么情况啊
支持原创 拜读了
学习学习,增加知识17
flash插件,不错,赞一个!
学习学习,增加知识
支持一下,又搞了一个插件啊。厉害!