代码之家  ›  专栏  ›  技术社区  ›  forrest

幻灯片专业-闪存加载,但图像不。为什么?

  •  2
  • forrest  · 技术社区  · 15 年前

    我安装了Slideshow pro,swfobject在这里: http://globalhealth-dev.oit.duke.edu/whos-involved/alumni

    以下是html:

    <object id="alumni" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="520" height="270">
    <param name="movie" value="http://globalhealth-dev.oit.duke.edu/alumni-slideshow.swf" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="http://globalhealth-dev.oit.duke.edu/alumni-slideshow.swf" width="520" height="270">
    
    <!--<![endif]-->
    <div>
        <h1>Alternative content</h1>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/photos/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    
    </object>
    

    以下是swfobject代码:

    <script type="text/javascript">
    swfobject.registerObject("slideshow", "9.0.0", "expressInstall.swf");
        swfobject.registerObject("alumni", "9.0.0", "expressInstall.swf");
    </script>
    

    这个图像.xml文件和库都在根目录中,xml文件代码为:

    <?xml version="1.0" encoding="UTF-8"?>
      <gallery>
       <album title="Alumni" description="Duke Global Health Institute Alumni" lgPath="gallery/album1/lg/">
      <img src="kohler.jpg" />
      <img src="zimmerman.jpg" />
      <img src="griffin.jpg" />
       </album>
    </gallery>
    

    如果能帮我解决这个问题,我将不胜感激!谢谢。

    3 回复  |  直到 14 年前
        1
  •  0
  •   Eugene    15 年前

    好的,你准备好了吗,你把它们都放到根目录下,现在访问这个网址 http://globalhealth-dev.oit.duke.edu/alumni-slideshow.swf

    把它埋在你想要的地方。

        2
  •  0
  •   forrest    15 年前

    1. 将完整的url放到图像.xml在Flash中的ssp首选项中: http://www.myurl.com/images.xml
    2. 将gallery images文件夹的完整路径放在xml文件中: http://www.myurl.com/gallery/lg/
    3. 只在img src链接中输入图像的名称:img src=“photo1.jpg”

        3
  •  0
  •   Yes Barry    13 年前

    域名.com 请求 www.domain.com

    我将此添加到.htaccess文件中,然后它又开始工作:

    RewriteRule ^/crossdomain\.xml$ - [L]
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule ^(.*) http://www.domain.com%{REQUEST_URI} [redirect=permanent]