컴퓨터.인터넷

액티브엑스활성화특허침해에따른 설계변경패치에대한 ..

네클리 2006. 4. 12. 20:53

익스플로러(IE)플러그인ActiveX액티브엑스활성화특허침해에따른 설계변경패치에대한 개발코딩간편변경방법


단 3줄로 끝나는 획기적인 코딩방법!

 

1. MS 의 일정 :

  • 이올라스 테크놀로지(Eolas Technologies)와의 특허 침해 소송과 관련한 인터넷 익스플로러의 테스트를 위한 한글 패치 Pre-release 버전 배포 개시:http://download.microsoft.com/download/8/3/d/83dcd69f-739d-4297-8258-8c5218e09fff/WindowsXP-KB912945-x86-KOR.exe(이 파일은 Windows XP SP2에서 실행하는 Internet Explorer 6에 설치하실 수 있으며, 개발자를 위한 pre-release 버전으로서 테스트 목적으로만 제공됨)
  • 2006년 3월 1일: 윈도우 업데이트를 통한 IE 업데이트의 선택적 다운로드 개시
  • 2006년 4월12일: 윈도우 업데이트 및 자동 업데이트를 통한 IE 업데이트의 자동 다운로드 및 설치 개시

    2. MS 가 말하는 코딩방법 :

    document.writeln('<script>');
    document.write('document.writeln('');
    document.write('<object
    classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="100"
    height="100"></object>');
    document.write('');');
    document.writeln('</script>');


    열라 뺑이쳐야 함.......--;


    3. 단 3줄로 끝나는 획기적인 코딩방법 :



    <textarea id=txt1 style="display:none;" rows="0" cols="0">

    <embed name=mediaplayer1 name=mediaplayer1
    type="application/x-mplayer2" pluginspage =
    "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
    width="320" height="315"
    filename="mmst://vod7.cgntv.net/vod13/hitouch2005/hitouch2005_01_200.asf"
    autostart="1" autosize="1" autoresize="1"
    animationatstart="0" transparentatstart="1"
    autorewind="1" showdisplay="0" clicktoplay="0"
    enablecontextmenu="0" showpositioncontrols="0"
    showstatusbar="1"></embed>                            

    </textarea>

    <script language="javascript"
    src="http://cgntv.net/z_main/okplugin_js.asp?txtid=txt1"></script>





    1) 해당 <object... 또는 <embed...  의 시작과 끝을
     
    <textarea id=txt1 style="display:none;" rows="0" cols="0">

    와 </textarea> 태그로 뒤덮는다.

    id 값은 임의로 정하되, 같은 페이지 내에서 여러번 사용할 경우에는

    txt1, txt2, ... 식으로 하면된다.
     

    2)  </textarea> 아래에

    2-1) asp 일 경우에는 ===================================================

    <script language="javascript" src=http://www.cgntv.net/z_main/okplugin_js.asp?txtid=txt1></script>

  • 를 삽입합니다.


    okplugin_js.asp 의 내용은  단 한줄 :
    <%
    txtid = request.querystring("txtid")
    spanid = "span" & txtid
    %>
    document.write(document.getElementById('<%=request.querystring("txtid")%>').value);

    입니다.


    2-2) php 일 경우는


    <script language="javascript" src=http://cgnmall.net/z_main/okplugin_js.php?txtid=txt1></script>


    를 삽입합니다.


    okplugin_js.php 의 내용은 단 한줄

    document.write(document.getElementById('<?=$txtid?>').value);

    입니다.


    =======================================================


    다만  okplugin_js.asp 나 okplugin_js.php 파일은

    님의 서버에 생성시키는 것이 더 좋겠지요.

    okplugin_js.asp 파일은 한번만 생성해놓으면 끝이죠.


    IE 의 패치도 피할뿐 아니라,  파이어폭스에서도 작동에 문제가 전혀 없는 코딩입니다.


    이제 어느 플러그인을 만나도 단지 3줄만 추가하면 모든것이 해결입니다.

    주의사항 : document.write 대신
    ....innerHTML 을 사용하면 동영상 등이 윈도우98에서 작동되지 않습니다.