在线文档播放问题:播放器加载flash失败
在网上找了phpcms百度文库插件(源程序就是phpcms的),照着做了下,转换都成功了,就是在显示的时候转换好的flash老是加载不出来(播放器正常加载),求解。
转换所用工具:OpenOffice3.0、Windows Resource Kit Tools和swftools。
先上显示页面代码:
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> {loop $docurl $r} <script type="text/javascript" src="/viewer/history/history.js"></script> <script type="text/javascript" src="/viewer/swfobject.js"></script> <script type="text/javascript"> var flashvars = { SwfFile : escape("{$r[filename]}"), Scale : 0.6, ZoomTransition : "easeOut", ZoomTime : 0.5, ZoomInterval : 0.1, FitPageOnLoad : false, FitWidthOnLoad : true, PrintEnabled : true, FullScreenAsMaxWindow : false, ProgressiveLoading : true, PrintToolsVisible : true, ViewModeToolsVisible : true, ZoomToolsVisible : true, FullScreenVisible : true, NavToolsVisible : true, CursorToolsVisible : true, SearchToolsVisible : true }; var params = {}; var attributes = {}; params.quality = "high"; params.bgcolor = "#ffffff"; params.allowscriptaccess = "sameDomain"; params.allowfullscreen = "true"; attributes.id = "wenkuplays"; attributes.name = "wenkuplays"; swfobject.embedSWF("{APP_PATH}viewer/wenkuplays.swf","flashContent","700","550", "10.0.0","{APP_PATH}viewer/playerProductInstall.swf",flashvars,params,attributes); swfobject.createCSS("#flashContent", "display:block;text-align:left;"); </script> <div id="flashContent"> <p> 本文档播放器要确保Adobe Flash Player版本10.0.0或更高版本。</p> <script type="text/javascript"> var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' />" ); </script> </div> {/loop}
网上找了一圈,有人说是下边这行错了,
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : escape("{$r[filename]}"),
应该改为:
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("{$r[filename]}"),
但我改完后还是加载不了swf,
还有说是swf文件名含中文或者是swf文件被放在文件夹下了,于是我在根目录下放了一个转换好的swf文件,并把上段代码改为:
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("a.swf"),
或
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("/a.swf"),
或
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("{APP_PATH}/a.swf"),
或
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("{APP_PATH}a.swf"),

script是指剧本或脚本的意思。在电影、电视、戏剧等艺术形式中,script用于描述角色的对话、动作和场景,以及故事的发展和结构。script的编写需要一定的技巧和经验,而且应该生动、有力,能够吸引观众的注意力,并传达出故事的情感和主题。script在电影和电视行业中尤为重要,是创作的基础,决定了电影的故事情节、角色发展和对话内容。script是艺术家们创作和表达的重要工具。

swf是一种基于矢量的Flash动画文件格式,被广泛应用于网页设计、动画制作等领域,swf文件通常也被称为Flash文件。一般用FLASH软件创作并生成SWF文件格式,也可以通过相应软件将PDF等类型转换为SWF格式;swf可以用Flash Player打开,浏览器必须安装Flash Player插件。设计人员和开发人员可使用它来创建演示文稿、应用程序和其它允许用户交互的内容。

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code<form name="myform"

计算机科学领域中,"script"通常表示一种脚本语言或脚本文件,脚本语言是一种解释性编程语言,通常用于自动化、批处理和快速原型开发等任务。

scripterror的解决办法有检查语法、文件路径、检查网络连接、浏览器兼容性、使用try-catch语句、使用开发者工具进行调试、更新浏览器和JavaScript库或寻求专业帮助等。详细介绍:1、检查语法错误:Script Error可能是由于JavaScript代码中存在语法错误导致的,使用开发者工具来检查代码并修复语法错误,确保代码中的括号、引号、分号等都是正确的等等。

PHP函数中true的含义详解在PHP中,true是一个布尔值,代表"真"或者"是"的状态。在函数中使用true通常用于表达一个条件成立或者返回一个成功的状态。本文将从不同的角度详细解释在PHP函数中true的含义,以及给出具体的代码示例说明。一、返回true的情况条件判断:在PHP函数中,true通常用于条件判断中,表示条件成立。例如:functioni

标题:PHP函数中true代表什么意思?在PHP编程中,true代表布尔值中的真,通常表示“真”的状态。在函数中使用true时,通常用于判断条件是否为真或执行某些操作。下面将通过具体的代码示例来说明在PHP函数中true代表什么意思。例子:

很多小伙伴下载了swf格式的文件,但是却无法打开,需要转换为mp4格式的文件。今天小编教大家用格式工厂转换为mp4格式,非常的方便快捷,具体的教程下面一起来看看吧。将swf格式转换为MP4格式方法1、首先下载视频转换器,2、下载安装后进入软件,选择左边“视频转换”然后点击“添加文件”,2、紧接着在“输出格式”中选择“输出格式”和“输出质量”,3、再之后点击右侧“转换”功能,推荐使用“极速模式”,能够提速30%,4、视频转换后,可以点击右侧“打开文件夹”就能跳转对应文件夹。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
