function embedMOV(evt){ // Check for video/quicktime plugin support if (!navigator.mimeTypes['video/quicktime']) return; // Derive target element var movLink = evt.target; // Build object var obj = document.createElement('object'); obj.setAttribute('type', "video/quicktime"); obj.setAttribute('data', movLink.href); obj.setAttribute('autoplay', 'true'); obj.setAttribute('style', 'width:95%; height:95%; margin-left:auto; margin-right:auto;'); // Write to the target frame var w = window.parent.frames[movLink.target]; var b = w.document.body; b.innerHTML = '
'; b.insertBefore(obj, b.firstChild); // Cancel link navigation evt.preventDefault(); evt.stopPropagation(); return false; } function prepLinks(){ // Find links to .mov files var movs = document.querySelectorAll('a[href*=".mov"], area[href*=".mov"]'); // Add click handler to embed the plugin for (var i=0; i