displayMultimedia() 함수에 flashvars값을 받을 수 있도록 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3646 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-12 09:20:26 +00:00
parent beb897647d
commit 8a23896fa3

View file

@ -177,7 +177,7 @@ function toggleDisplay(obj, opt) {
/** /**
* @brief 멀티미디어 출력용 (IE에서 플래쉬/동영상 주변에 점선 생김 방지용) * @brief 멀티미디어 출력용 (IE에서 플래쉬/동영상 주변에 점선 생김 방지용)
**/ **/
function displayMultimedia(src, width, height, auto_start) { function displayMultimedia(src, width, height, auto_start, flashvars) {
if(src.indexOf('files')==0) src = request_uri+src; if(src.indexOf('files')==0) src = request_uri+src;
if(auto_start) auto_start = "true"; if(auto_start) auto_start = "true";
else auto_start = "false"; else auto_start = "false";
@ -186,15 +186,18 @@ function displayMultimedia(src, width, height, auto_start) {
var codebase = ""; var codebase = "";
var html = ""; var html = "";
if(typeof(flashvars)=="undefined") flashvars = "";
if(/\.swf/i.test(src)) { if(/\.swf/i.test(src)) {
clsid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; clsid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"; codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0";
html = ""+ html = ""+
"<object classid=\""+clsid+"\" codebase=\""+codebase+"\" width=\""+width+"\" height=\""+height+"\" >"+ "<object classid=\""+clsid+"\" codebase=\""+codebase+"\" width=\""+width+"\" height=\""+height+"\" flashvars=\""+flashvars+"\">"+
"<param name=\"wmode\" value=\"transparent\" />"+ "<param name=\"wmode\" value=\"transparent\" />"+
"<param name=\"allowScriptAccess\" value=\"sameDomain\" />"+ "<param name=\"allowScriptAccess\" value=\"sameDomain\" />"+
"<param name=\"movie\" value=\""+src+"\" />"+ "<param name=\"movie\" value=\""+src+"\" />"+
"<param name=\"quality\" value=\"high\" />"+ "<param name=\"quality\" value=\"high\" />"+
"<param name=\"flashvars\" value=\""+flashvars+"\" />"+
"<embed src=\""+src+"\" autostart=\""+auto_start+"\" width=\""+width+"\" height=\""+height+"\" wmode=\"transparent\"></embed>"+ "<embed src=\""+src+"\" autostart=\""+auto_start+"\" width=\""+width+"\" height=\""+height+"\" wmode=\"transparent\"></embed>"+
"<\/object>"; "<\/object>";
} else if(/\.flv/i.test(src)) { } else if(/\.flv/i.test(src)) {