IE flash 패치용

//============================================================================
// 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>');
}

댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
목록형 📷 갤러리형
제목
[기본형] HTML (with 부트스트랩5.3 , jquery 3.7, vue.js)
유용한 리눅스(LINUX) 명령어
[공지] 기술 게시판
4.28
4.29
4.30
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
5.11
5.12
5.13
5.14
5.15
5.16
5.17
5.18
5.19
5.20
5.21
5.22
5.23
5.24
5.25
5.26
5.27
5.28
5.29
5.30
5.31
6.1