使 SWF (Flash) 横幅可点击
我正在使用 SWFobject。
我正在创建横幅管理系统。我需要集成 Flash (SWF) 横幅并需要跟踪点击次数和展示次数。
我尝试将 flash 对象包装在锚标记内。不工作:)
第一个回复说:
但是,对于可点击横幅等简单的东西,您可能需要的只是 swfobject。
谁能告诉我如何使用 swfobjects 创建可点击的横幅吗?
I am using SWFobject.
I am creating Banner Management System. I need to integrate Flash (SWF) banners and need to keep track of clicks and impressions.
I tried to wrap flash object within anchor tag. Not working :)
I gone through Best way to implement a flash website banner
The first reply says that:
However, for simple things like clickable banners, all you may need is swfobject.
Can anyone tell, how to create clickable banners with swfobjects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在不知道您的项目限制是什么的情况下,我不确定是否需要将点击跟踪与 Flash 内容分开。根据我的经验,横幅上的大多数点击跟踪都是在 Flash 内容中处理的。因此,大多数制作横幅的机构要么有一个基于 Flash 的横幅模板,其中包含报告点击的所有代码,要么有一个 Flash 包装器,将横幅加载到其中并跟踪点击。
据我所知,swfobject只是用于跨浏览器一致地显示Flash,没有办法将swfobject用作点击跟踪设备。
不过,您也许能够实现一个 javascript 解决方案,将 swfobject 嵌入到另一个能够为您跟踪点击的 javascript 包装器中。使用 Flash 的好处是,您可以跟踪用户单击的位置,甚至他们在对象上悬停的位置以及悬停的时间。
Without knowing what your project constraints are, I'm not sure if having the click-tracking separate from the Flash content is required. In my experience most click-tracking on banners is handled within the Flash content. So most agencies producing banners will either have a Flash-based template for banners that include all the code to report clicks, or a Flash wrapper that loads banners into it and tracks clicks.
swfobject, as far as I know, is just used to display Flash consistently across browsers, there is no way to use swfobject as a click-tracking device.
You may be able to implement a javascript solution though, wrapping the swfobject embed in another javascript wrapper that is able to track clicks for you. The benefit with using flash though is that you can track where the user clicked, or even where they hovered over objects and for how long.