일전에 어디선가 편하게 플래시를 띄울수 있는 함수를 본것 같아서 검색하다가
남에 홈피 뒤져보다가...ㅋㅋ
결국 찾긴 찾았는데 약간의 수정이 필요해 보입니다.
LG데이콤 홈페이지에서 가져온건데 유용할것 같아 올려봅니다.
사실 제가 필요해서 찾은거구 올리는거예요 ㅋㅋㅋㅋ
/*###########플래시 넣는 함수############f_id = 플래시 아이디f_name = 플래시 파일명f_width = 가로크기f_height = 세로높이f_trans = 공백, transparent(투명)f_para = 파라미터, 공백*/function show_flash_F(f_id,f_name,f_width,f_height,f_trans,f_para){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-44455354000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+f_width+"' height='"+f_height+"' id='"+f_id+"'>");
document.write("<param name='allowScriptAccess' value='always'/>");
document.write("<param name='movie' value='"+f_name+"'>");
document.write("<param name='quality' value='high'>");
document.write("<param name='scale' value='noscale'>");
document.write("<param name='wmode' value='"+f_trans+"'>");
document.write("<PARAM NAME='flashvars' VALUE='"+f_para+"'>");
document.write("<embed src='"+f_name+"' allowScriptAccess='always' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='"+f_trans+"' width='"+f_width+"' height='"+f_height+"'></embed>");
document.write("</object>");
}
function writeObject(obj_file,width,height,wmode)
{
var obj_src = "";
obj_src += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\""+width+"\" height=\""+height+"\">\n";
obj_src += " <param name=\"movie\" value=\""+obj_file+"\">\n";
obj_src += " <param name=\"wmode\" value=\""+wmode+"\">\n";
obj_src += " <param name=\"menu\" value=\"false\">\n";
obj_src += " <param name=\"quality\" value=\"high\">\n";
obj_src += " <embed src=\""+obj_file+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>\n";
obj_src += "</object>\n";
document.write(obj_src);
}
function FlashObject(swf, width, height, bgcolor, id, flashvars)
{
var strFlashTag = new String();
if (navigator.appName.indexOf("Microsoft") != -1)
{
strFlashTag += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";
strFlashTag += "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0' ";
strFlashTag += "id='" + id + "' width='" + width + "' height='" + height + "'>";
strFlashTag += "<param name='movie' value='" + swf + "'/>";
if(flashvars != null) {strFlashTag += "<param name='flashvars' value='" + flashvars + "'/>"};
strFlashTag += "<param name='quality' value='best'/>";
strFlashTag += "<param name='bgcolor' value='" + bgcolor + "'/>";
strFlashTag += "<param name='menu' value='false'/>";
strFlashTag += "<param name='salign' value='LT'/>";
strFlashTag += "<param name='scale' value='noscale'/>";
strFlashTag += "<param name='wmode' value='transparent'/>";
strFlashTag += "<param name='allowScriptAccess' value='always'/>";
strFlashTag += "</object>";
}else{
strFlashTag += ' <embed src="' + swf + '" ';
strFlashTag += 'quality="best" ';
strFlashTag += 'bgcolor="' + bgcolor + '" ';
strFlashTag += 'width="' + width + '" ';
strFlashTag += 'height="' + height + '" ';
strFlashTag += 'menu="false" ';
strFlashTag += 'scale="noscale" ';
strFlashTag += 'id="' + id + '" ';
strFlashTag += 'salign="LT" ';
strFlashTag += 'wmode="transparent" ';
strFlashTag += 'allowScriptAccess="sameDomain" ';
if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
strFlashTag += 'type="application/x-shockwave-flash" ';
strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
strFlashTag += '</embed>';
}
document.write(strFlashTag);
}