x
Yes
No
Do you want to visit DriveHQ English website?
Inicio
Características
Precios
Prueba gratuita
Software cliente
Acerca de nosotros
Servidor de archivos
|
Solución de copias de seguridad
|
Servidor FTP
|
Servidor de correo electrónico
|
Alojamiento web
|
Software cliente
Servidor de archivos
Solución de copia de seguridad
Servidor FTP
Servidor de correo electrónico
Alojamiento web
Software cliente
embedmovie.js - Hosted on DriveHQ Cloud IT Platform
Arriba
Subir
Descargar
Compartir
Publicar
Nueva carpeta
Nuevo archivo
Copiar
Cortar
Eliminar
Pegar
Clasificación
Actualizar
Ruta de la carpeta: \\mumbaimizo\MumbaiMizoFolders\album\res\embedmovie.js
Girar
Efecto
Propiedad
Historial
/* embedmovie.js * Author: Laszlo Molnar / Hungary * Date: 01/11/2006 * Version: 0.5 */ var mtype = new Array (".avi.mp3", ".qt.mov.mpg.mpeg.mpe.mp4.aiff", ".wmv.wma.asf", ".swf.flv", ".divx.xvid" ); var cheight = new Array (0, 16, 64, 0, 20); var audio = ".mp3.wav.wma.aiff.mid.rm.ram"; function addParam(name, value) { return '
\n'; } function embedMovie(src, width, height, autoplay, hide, scaletofit) { var isExplorer = (navigator.appName.indexOf('Explorer') != -1); var ext = src.substr(src.lastIndexOf('.')).toLowerCase(); var isAudio = (audio.indexOf(ext) != -1); for(i = 0; i < mtype.length; i++) if(mtype[i].indexOf(ext) != -1) break; if(i == 0) { i = (navigator.userAgent.indexOf('Macintosh') != -1)? 1 : 2; } if(!scaletofit && audio.indexOf(ext) != -1) height = 0; if(hide) width = height = 0; else height += (i < mtype.length)? cheight[i] : 45; switch (i) { case 1: // QuickTime Movie if(isExplorer) { document.write('
\n'); document.write(addParam("src", src)); document.write(addParam("autoplay", autoplay)); document.write(addParam("bgcolor", "black")); if(scaletofit) document.write(addParam("scale", "tofit")); document.write('
\n'); break; case 2: // Windows Media Player if(src.indexOf('/') == -1) src = './' + src; if(isExplorer) document.write('
\n'); if(isExplorer) document.write(addParam("URL", src)); document.write(addParam("src", src)); document.write(addParam("AutoStart", autoplay? '1':'0')); if(scaletofit) document.write(addParam("StretchToFit", '1')); document.write(addParam(isExplorer? "ShowControls":"Controller", '1')); document.write('
\n'); break; case 3: // Flash Animation if(isExplorer) { document.write('
\n'); if(ext.charAt(1) == 'f') document.write(addParam("movie", src + '&autoStart=' + autoplay)); else document.write(addParam("movie", src)); document.write(addParam("allowScriptAccess", "sameDomain")); document.write(addParam("quality", "high")); document.write('\n'); break; case 4: // DivX Movie if(isExplorer) { document.write('
\n'); document.write(addParam("mode", "zero")); document.write(addParam("autoPlay", autoplay)); document.write(addParam("allowContextMenu", "false")); if(src.charAt(0) == "." || src.charAt(0) == "/" || src.indexOf("http:") == 0) document.write(addParam("src", src)); else document.write(addParam("src", "./" + src)); document.write('
\n'); break; default: // Undefined document.write('
'); } }
embedmovie.js
Dirección de la página
Dirección del archivo
Anterior
9/51
Siguiente
Descargar
( 4 KB )
Comments
Total ratings:
0
Average rating:
No clasificado
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.