在 Joomla 上集成 Flash 组件,无需在每个页面上重新加载它
是否有 joomla 组件允许在 joomla 网站上集成 Flash SWF:无需为每个页面重新加载它(通过使用 IFRAME 或其他任何东西)
Is-there a joomla compenent that permits to integrate a flash SWF on a joomla website : without realoding it for each page (by using an IFRAME or anything else
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你好匿名(好名字!)
这根本不理想,因为如果你要将 Flash 内容放在 iframe 中,则意味着 joomla 加载的所有其他内容都需要加载到单独的 iframe 中,以防止整个文档免于重新加载。
由于 joomla 核心的性质以及它在运行时的构造方式,这是不可能的(嗯,几乎)。
很多人(客户)要求 Flash 的这一功能不要在每个新页面上重新加载。 Web 和 XHTML(或任何前端 Web 语言)的本质是,为了显示新内容,必须重新加载文档。是的,有异步方法,例如 AJAX 等,但这些对于 Joomla 来说是不可能的,除非你花了数光年的时间来攻克核心。
如果您有简单的“视图”或想要在 Flash 影片中显示的不同对象,并且整个影片没有从第 1 帧开始(例如),您可以将 URL 变量附加到 Flash 源,然后根据这些变量的内容,您可以操纵 Flash 影片中显示的内容。
swf 文件仍然会重新加载(如果文档正在重新加载,则必须重新加载),但至少您可以在 SWF 文件中提供不同的内容。
我希望这能引导您走向正确的方向。
亲切的问候,
西蒙
Hello anonymous (nice name!)
This would not be ideal at all, since if you were to have the flash content in an iframe, it would mean that EVERY other content loaded by joomla would need to be loaded into separate iframes in order to prevent the entire document from reloading.
This is impossible (well, ALMOST) due to the nature of the joomla core and how it is constructed at run time.
So many people (clients) request this feature of flash not reloading on each new page. It is the nature of the web and XHTML (or any front end web languages) that in order for new content to be display the document must be reloaded. Yes there are asynchronous methods such as AJAX etc, but those are out of the question for Joomla, unless you spent light years hacking away at the core.
If you had simple "views" or different objects you wanted to show within your flash movie and not have the ENTIRE movie start from frame 1 (for example) you could append URL variables to the flash source, and then based on what those variables are, you could manipulate what content is shown in the flash movie.
The swf file will still reload (it has to if the document is reloading) but at least you can serve up different content within the SWF file.
I hope this steers you in the right direction.
Kind regards,
Simon