iWeb for Musicians

QuickTime Javascript Embed

Main Navigation:

 

Embed a QuickTime Movie using Javascript

Code:


<script src="http://www.domain.com/Folder-Name/QT-JS.js" language="javascript"> </script>


<script language="javascript">

    QT_WriteOBJECT('http://www.domain.com/Folder-Name/Movie.mp4' , '640', '496', '', 'AUTOPLAY', 'false', 'CONTROLLER', 'true', 'VOLUME', '50', 'KIOSKMODE', 'true', 'SCALE', 'Aspect') ;

</script>

Click the button to compare the same movie uploaded to Vimeo...

This is a click to flip "book". Its actually a .mov file that appears on this page using javascript.


Click to flip and click twice to return to the beginning.

This is a regular movie using the same code. It has a control bar but note that the download button has been removed and, if you click and hold on the volume button, you’ll see that the initial volume has been set to 50%..

Both movies reference the same  “QT-JS.js” file which is uploaded to the server along with the movie and poster image files.

© Roddy McKay 2011- All Rights Reserved

Next Page