javascript - Help with creating a redirect-like or replacement command -
here's looking do:
a person goes site , quicktime movie plays.
at end of movie, new image appears (ideally fades in).
i guess there 3 ways can happen:
a. quicktime image window replaced image. b. quicktime image window moves background/behind existing image on page (or background image comes forward on top of quicktime image window). c. after completion of quicktime movie, site automatically redirects new page.
i have components page, have not been able locate code out there can make happen.
thanks in advance :)
you don't have access plugin that's playing mov. you'd have use native html 5 video.
in case: if it's same video - , same length - try running javascript timer in background. when time's up, 1 of things mentioned.
html 5 video brings along new media events can use. in case ended
event seems appropriate. you'd bind video element other event. on it's simple dom scripting, like:
function myhandler(e) { if(!e) { e = window.event; } top.location.href = "http://brigadapictures.com"; } document.getelementbyid('video').addeventlistener('ended',myhandler,false);
Comments
Post a Comment