xml flash gallery / joomla 需要帮助

发布于 2024-07-24 21:35:31 字数 1089 浏览 4 评论 0原文

我从 flashden 购买了“虚拟画廊”,但在实现它时遇到了问题。我不习惯使用 flash gallery 或 xml 文件,所以希望有人可以帮助我。

这是对 flash (js) 的调用:

  var so = new SWFObject("gallery.swf?xml=category_1.xml", "virtualgallery", "100%", "600", "10", "#414141");
  so.addParam("allowFullScreen", "true");
  so.addParam("scale", "noscale");
  so.addParam("menu", "true");
  so.write("flashcontent");

这是 xml 选项:

<options imagesFolder="images" thumbsFolder="images/thumbs" viewportMaxWidth="920" viewportMaxHeight="600" sfx="yes" />

这是我的结构和路径:

图像:/images/gallery/

拇指:/images/gallery/ thumbs/

XML: /components/com_gallery/assets/

SWF: /components/com_gallery/assets/

其中包含图库 (js) 的组件是 /index.php ?option=com_gallery&view=gallery&cid=7&Itemid=2 基本上是这样的:

/components/com_gallery/views/gallery/tmpl/default.php

我不认为 xml 文件喜欢使用 /images/gallery 和我不认为新的 SWFObject 喜欢 swf 文件的路径等。我希望我在这里说得有道理!

如果有人可以提供帮助,那就太好了..谢谢:)

I've bought the "virtual gallery" from flashden but I'm having problems implementing it.. I'm not used to using flash galleries or xml files, so hopefully someone can help me out a bit.

Here's the call to the flash (js):

  var so = new SWFObject("gallery.swf?xml=category_1.xml", "virtualgallery", "100%", "600", "10", "#414141");
  so.addParam("allowFullScreen", "true");
  so.addParam("scale", "noscale");
  so.addParam("menu", "true");
  so.write("flashcontent");

Here's the xml options:

<options imagesFolder="images" thumbsFolder="images/thumbs" viewportMaxWidth="920" viewportMaxHeight="600" sfx="yes" />

And here's my structure and paths:

Images: /images/gallery/

Thumbs: /images/gallery/thumbs/

XML: /components/com_gallery/assets/

SWF: /components/com_gallery/assets/

And the component with the gallery (js) in it is /index.php?option=com_gallery&view=gallery&cid=7&Itemid=2 which is basically this:

/components/com_gallery/views/gallery/tmpl/default.php

I don't think the xml file likes using /images/gallery and I don't think the new SWFObject likes the paths to the swf file etc.. I hope I'm making sense here!

If anyone could help, that would be fantastic.. Thank you :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扎心 2024-07-31 21:35:31

如果我的答案过于简单,但您的 xml 选项路径和文件结构不匹配,我深表歉意。 这将导致无法加载正确的文件。

I apolagize if my answer is retardedly simple, but your xml option paths and your file structures don't match. This would make it so that the proper files can't be loaded.

暮光沉寂 2024-07-31 21:35:31

好的,所以在 XML 中我必须执行 ../../images/gallery/ 等

Ok, so in the XML I had to do ../../images/gallery/ etc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文