simobk
07-29-2003, 02:22 AM
Hi all,
I have a site with frames with embed quicktime movies. After reading the quicktime documentation, I know that I can control Quicktime with Javascript, here's the example they give:
<A HREF="javascript:PlayIt(document.movieName);">Play</a>
<A HREF="javascript:StopIt(document.movieName);">Stop</a>
This code is supposed to work perfectly with links placed on the same page as the embedded quicktime, but...
1. The controls are not on the same frame as the embedded quicktime. The control should be on the "main" frame while the embedded quicktime is on the "right" frame.
2. The controls shouldn't be links. I need the "STOP" function to happen when a specific page is loaded, and then the "PLAY" function to happen when that same page is unloaded.
This may seem hard to understand, so I'll explain to you the main function of this:
The site is composed of 4 frames: "left", "menu", "main" and "right". You can see it at http://www.guydodo.com
The "right" frame contains an embedded quicktime that plays background music as soon as we enter the site.
Some links will open a video on the "main" frame.
When the video page is loaded, it should automatically stop the music played by the controller in the "right" frame.
When the video page is unloaded, it should automatically resume the music played by the controller in the "left" frame.
I hope it is clear, now the question is: How do I run these code when loading/unloading the page, and how do I make them affect the "right" frame and not the "main" frame.
Bonus question: "Is it possible to do the same thing if I load the videos in a pop-up window instead of the 'main' frame?"
Thanks all for your help, really appreciated...
Simo
PS: When I preview the post, the word javascript in the code is divided, it's actually one word.... ;)
I have a site with frames with embed quicktime movies. After reading the quicktime documentation, I know that I can control Quicktime with Javascript, here's the example they give:
<A HREF="javascript:PlayIt(document.movieName);">Play</a>
<A HREF="javascript:StopIt(document.movieName);">Stop</a>
This code is supposed to work perfectly with links placed on the same page as the embedded quicktime, but...
1. The controls are not on the same frame as the embedded quicktime. The control should be on the "main" frame while the embedded quicktime is on the "right" frame.
2. The controls shouldn't be links. I need the "STOP" function to happen when a specific page is loaded, and then the "PLAY" function to happen when that same page is unloaded.
This may seem hard to understand, so I'll explain to you the main function of this:
The site is composed of 4 frames: "left", "menu", "main" and "right". You can see it at http://www.guydodo.com
The "right" frame contains an embedded quicktime that plays background music as soon as we enter the site.
Some links will open a video on the "main" frame.
When the video page is loaded, it should automatically stop the music played by the controller in the "right" frame.
When the video page is unloaded, it should automatically resume the music played by the controller in the "left" frame.
I hope it is clear, now the question is: How do I run these code when loading/unloading the page, and how do I make them affect the "right" frame and not the "main" frame.
Bonus question: "Is it possible to do the same thing if I load the videos in a pop-up window instead of the 'main' frame?"
Thanks all for your help, really appreciated...
Simo
PS: When I preview the post, the word javascript in the code is divided, it's actually one word.... ;)