帮助创建类似重定向或替换的命令
以下是我想要做的事情:
某人访问我的网站,播放 Quicktime 电影。
在影片结束时,会出现一个新图像(理想情况下会淡入)。
我想这可能会通过三种方式发生
: Quicktime 图像窗口被图像取代。 b. Quicktime 图像窗口移动到页面上现有图像的背景/后面(或者该背景图像出现在 Quicktime 图像窗口的顶部)。 c. Quicktime 电影播放完毕后,网站会自动重定向到新页面。
我拥有该页面的所有组件,但我无法找到任何可以实现此目的的代码。
预先感谢您的帮助:)
Here's what I am looking to do:
A person goes to my site and a Quicktime movie plays.
At the end of the movie, a new image appears (ideally fades in).
I guess that there are three ways this can happen:
a. The Quicktime image window is replaced by an image.
b. The Quicktime image window moves to the background/behind an existing image on the page (or that background image comes forward on top of the Quicktime image window).
c. After the completion of the Quicktime movie, the site automatically redirects to a new page.
I have all the components for the page, but I have not been able to locate any code out there than can make this happen.
Thanks in advance for any help :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无权访问正在播放 MOV 的插件。您必须使用原生 HTML 5 视频。
无论如何:如果始终是相同的视频 - 因此长度相同 - 您可以尝试在后台运行 Javascript 计时器。当时间到了时,你可以做你提到的事情之一。
HTML 5 视频带来了一些您可以使用的新媒体事件。在您的情况下,
结束
事件似乎是合适的。您只需将其绑定到视频元素,就像任何其他事件一样。从那时起,它就是简单的 DOM 脚本,例如:You don't have access to the plugin that's playing the MOV. You'd have to use native HTML 5 video.
In any case: If it's always the same video - and thus the same length - you could try running a Javascript timer in the background. When the time's up, you do one of the things you mentioned.
HTML 5 video brings along some new media events that you can use. In your case the
ended
event seems appropriate. You'd just bind that to the video element like any other event. From then on it's simple DOM scripting, like: