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="java script
layIt(document.movieName);">Play</a>
<A HREF="java script: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
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
Motherboard: Asus CUSL2
Proc: PIII 733MHz
Mem: 256Mb SDRam PC133
Video: ATI All In Wonder 128 Pro (IRQ11)
Sound: SB Live Value (IRQ9 shared with modem and both LAN cards, it's always been like that but it used to work b4)
LAN+Modem: 10/100PCI - 10PCI - 56K
IDE: DVD16x - CD.RW 12.10.32 - 3½ - Master 30Gb 7200rpm - Sla
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="java script
<A HREF="java script: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
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
Motherboard: Asus CUSL2
Proc: PIII 733MHz
Mem: 256Mb SDRam PC133
Video: ATI All In Wonder 128 Pro (IRQ11)
Sound: SB Live Value (IRQ9 shared with modem and both LAN cards, it's always been like that but it used to work b4)
LAN+Modem: 10/100PCI - 10PCI - 56K
IDE: DVD16x - CD.RW 12.10.32 - 3½ - Master 30Gb 7200rpm - Sla