0

我有一个问题,我想看看是否有人可以帮助我...

我正在使用从以下网址下载的 PAGEFLIP:http://pageflip.hu/这个项目位于 JOOMLA 文章中:http ://estudiantes.iems.edu.mx/index.php?option=com_k2&view=item&id= 334

我的问题是我只能在 Chrome 和 Safari 上看到 PAGEFLIP,但它不能在 IE 和 Firefox 上运行,这不是兼容性问题,因为它在 Firefox 和 IE 上本地运行...

我正在搜索,我认为当我更改 URL 时问题就出现了......这是原始代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <title>PageFlip4</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="css/pageflip_scalable.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="js/swfobject.js"></script>
        <script type="text/javascript">
            var flashvars = {};
            flashvars.XMLFileName = "pageflipdata.xml";
            flashvars.DataFolder = "pageflipdata/";

            if (swfobject.getQueryParamValue("page")) {
                flashvars.StartPage = swfobject.getQueryParamValue("page");
            } else {
                flashvars.StartPage = "1";
            }

            flashvars.StartAutoFlip = "true";
            flashvars.AutoStart = "true";
            var params = {};

            params.scale = "noscale";
            params.salign = "TL";
            params.wmode = "transparent";
            params.allowscriptaccess = "always";
            params.allowfullscreen = "true";
            params.menu = "true";
            params.bgcolor = "#FFFFFF";

            var attributes = {};
            swfobject.embedSWF("pageFlip.swf", "pageflip", "100%", "100%", "10.0.0", false, flashvars, params, attributes);
        </script>
      <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />      
      <script src="js/prototype.js" type="text/javascript"></script>
      <script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
      <script src="js/lightbox++.js" type="text/javascript"></script>
      <script type="text/javascript">
            function GroupDelegate(id) {
                var objLink = document.getElementById(id);
                Lightbox.prototype.start(objLink);
            }
            function LightboxDelegate(url,caption) {
                var objLink = document.createElement('a');
                objLink.setAttribute('href',url);
                objLink.setAttribute('rel','lightbox');
                objLink.setAttribute('title',caption);
                Lightbox.prototype.start(objLink);
            }
      </script>
    </head>

    <body>
        <div id="pageflip" style="margin: 0;"></div>
        <a id="group1" href="pageflipdata/pages/demo_page_A.png" rel="lightbox[demoGroup1]" title="Page A, group Called from PageFlip Hotspot"></a>
        <a id="group2" href="pageflipdata/pages/demo_page_B.png" rel="lightbox[demoGroup1]" title="Page B, group Called from PageFlip Hotspot"></a>
        <a id="group3" href="pageflipdata/pages/demo_page_C.png" rel="lightbox[demoGroup1]" title="Page C, group Called from PageFlip Hotspot"></a>     
    </body>
</html>

我在 Firefox 和 IE 上看不到它当我从此 SCRIPT 行更改 URL 时(这是我的在线代码):

<script type="text/javascript">

            var flashvars = {};
            flashvars.XMLFileName = "pageflipdata.xml";
            flashvars.DataFolder = "http://estudiantes.iems.edu.mx/cired/swfs/ae/fl/noumeno/obj/pageflipdata/";

            if (swfobject.getQueryParamValue("page")) {
                flashvars.StartPage = swfobject.getQueryParamValue("page");
            } else {
                flashvars.StartPage = "1";
            }

            flashvars.StartAutoFlip = "true";
            flashvars.AutoStart = "true";
            var params = {};

            params.scale = "noscale";
            params.salign = "TL";
            params.wmode = "transparent";
            params.allowscriptaccess = "always";
            params.allowfullscreen = "true";
            params.menu = "true";
            params.bgcolor = "#FFFFFF";

            var attributes = {};
            swfobject.embedSWF("http://estudiantes.iems.edu.mx/cired/swfs/ae/fl/noumeno/obj/pageFlip.swf", "pageflip", "100%", "100%", "10.0.0", false, flashvars, params, attributes);

        </script>

所以,我认为不正确的是我写它的方式,一种语法问题。

有人知道我可以尝试解决什么。太感谢了!;)

4

1 回答 1

0

尝试为 XML 提供完整路径

或者可以使用 HTML 之类的

于 2012-08-09T15:34:57.313 回答