Reset Home

To Scale a Quick Time movie

This tip for setting the size of embedded is taken from Elizabeth Castro's great book 'HTML for the WWW'

add

< param name="scale" value="factor" />

(the /> is for xhtml to be accepted as validated code. if you're not bothering with validated code you can get away with just >, but having read this book, validated xhtml is beneficial in the long term in terms of having sites compatable with cross platform browser advances )

where factor is either:
tofit (to fit it's box)
aspect (fit box but maintain original proportions)
n (n=number you wish to scale it by, ie: 2 for double size)

In the embed section, add the parameter scale="value" (where value is whatever you chose in the tag.

As a note for validation: xhtml doesn't validate the <embed> tag, so i removed it, and the file still plays in IE6 and NN7.

The complete codelet looks like this:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="363" width="633">
<param name="src" value="Library4.mov">
<param name="autoplay" value="true">
<param name="scale" value="tofit">
<param name="type" value="video/quicktime" height="363" width="633">
<embed src="Library4.mov" height="363" width="633" autoplay="true" scale="value" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">
</object>

Here is a Script that disables right click on images. I don't use it, but others might.


<SCRIPT language=JavaScript1.2>
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

var clickmessage="Right click disabled on images!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</SCRIPT>

Here's the code you can use to scroll words across the tray at the bottom.


<SCRIPT language=JavaScript1.2>


<!--
function scrollit_r2l(seed)
{
   var m1  = " This portal leads you to DaVinci's private domain. His personal quarters. ";
   var m2  = " You will need his express invitation to share this part of his world.";

   var msg = m1+m2;
   var out = " ";
   var c   = 1;

   if (seed > 100) {
      seed--;
      var cmd="scrollit_r2l(" + seed + ")";
      timerTwo=window.setTimeout (cmd,100);
   }
   else if (seed <= 100 && seed > 0) {
      for (c=0 ; c < seed ; c++) {
         out+=" ";
      }
      out+=msg;
      seed--;
      var cmd="scrollit_r2l(" + seed + ")";
      window.status=out;
      timertwo=window.setTimeout (cmd,100);
   }
   else if (seed <= 0) {
      if (-seed < msg.length) {
         out+=msg.substring(-seed,msg.length);
         seed--;
         var cmd="scrollit_r2l(" + seed + ")";
         window.status=out;
         timertwo=window.setTimeout (cmd,100);
      }
      else {
         window.status=" ";
         timerTwo=window.setTimeout ("scrollit_r2l(100)",75);
      }
   }
}
// -->
</script>

Reset Home