확장자는 파일이름의 마지막

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5287 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-08 07:02:12 +00:00
parent ad4b07d1ea
commit dcf13c7300

View file

@ -472,7 +472,7 @@ function displayMultimedia(src, width, height, options) {
var codebase = "";
var html = "";
if(/\.swf/i.test(src)) {
if(/\.swf$/i.test(src)) {
clsid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0";
html = '<object classid="'+clsid+'" codebase="'+codebase+'" width="'+width+'" height="'+height+'" flashvars="'+params.flashvars+'">';
@ -485,7 +485,7 @@ function displayMultimedia(src, width, height, options) {
html += ''
+ '<embed src="'+src+'" autostart="'+autostart+'" width="'+width+'" height="'+height+'" flashvars="'+params.flashvars+'" wmode="'+params.wmode+'"></embed>'
+ '</object>';
} else if(/\.flv/i.test(src) || /\.mov/i.test(src) || /\.moov/i.test(src) || /\.m4v/i.test(src)) {
} else if(/\.flv$/i.test(src) || /\.mov$/i.test(src) || /\.moov$/i.test(src) || /\.m4v$/i.test(src)) {
html = '<embed src="'+request_uri+'common/tpl/images/flvplayer.swf" allowfullscreen="true" autostart="'+autostart+'" width="'+width+'" height="'+height+'" flashvars="&file='+src+'&width='+width+'&height='+height+'&autostart='+autostart+'" />';
} else {
html = '<embed src="'+src+'" autostart="'+autostart+'" width="'+width+'" height="'+height+'"></embed>';