xml flash gallery / joomla 需要帮助
我从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我的答案过于简单,但您的 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.
好的,所以在 XML 中我必须执行 ../../images/gallery/ 等
Ok, so in the XML I had to do ../../images/gallery/ etc