조회 : 120
//============================================================================
// IE flash 패치용
//============================================================================
function IE_flash_patch(textarea_id){
//textarea 사용
var textarea = document.getElementById(textarea_id);
if(!textarea){
alert('No Textarea');
}else{
document.write(textarea.value);
}
}
function IE_flash_patch2(ta_id){
// obejct 의 id사용(object를 똑같게 만듬 IE전용
var ta = document.getElementById(ta_id);
if(!document.all){return;}
if(!ta){
alert('No Target');
}else{
var str = ta.outerHTML;
//ta.removeNode(true);
ta.id='';
ta.style.display='none';//숨기기만 함, 삭제하면 IE가 계속 파일을 찾음
ta.onload=function(){alert('test');}
// parent.appendChild(ta2);
// ta.outterHTML = '';
document.write(str);
}
}
function js_flash(file,wid,hei){ //가져온 함수
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+wid+'" height="'+hei+'">');
document.write('<param name="movie" value="'+file+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="'+file+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+wid+'" height="'+hei+'"></embed>');
document.write('</object>');
}