mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
확장자는 파일이름의 마지막
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5287 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ad4b07d1ea
commit
dcf13c7300
1 changed files with 2 additions and 2 deletions
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue