PDA

View Full Version : Having a quicktime open in a quicktime window , not a browser window


nrv
12-10-04, 09:35 PM
if you link a button to a quicktime movie or audio file, how do you make it
so it doesn't open in a huge browser window, but as only a quicktime window?


[Croc Hunter] moved - you'll get better replies here nrv

Rc2000
12-13-04, 01:34 AM
Try this ---

<a href="#" onClick="MyWindow=window.open('MOVIEFILENAME.mov','MyWindow 1','toolbar=no,location=no,directories=no,status=y es,menubar=no,scrollbars=no,resizable=yes,width=XX X,height=XXX'); return false;">MOVIE NAME</b></a>
(ummm, for some reason my browser doesn't show these code things. Hopefully you can see this.)

It gives you many variables you can change and set. The height and width ones are for the size of the window that will open. Once you know the size of your movie, you can adjust the size of the new window. I usually make the window a bit bigger that the movie. You can play around with that. This does not open in a Quicktime player by itself. Your browser will still open the movie/wav file.
Also, look at 'MyWindow1'. If you have more than one movie clip you want to play, you use the basic code and change 'MyWindow1' to 'MyWindow2', 3, 4, or however many you'll use.


You can see this in action here, at my old Godzilla site ---
Godzilla vs. Monster Zero (http://rc2000godzilla.com/godzilla/gmovies/gvmzero/mzero.html)

Feel free to check the source code if you need to.
I have several movie and wav files that can be heard and seen using this code.
Hope this helps.

Rc