IE 패치에 따른 object, embed, applet 여러가지 대처 방안 > HTML/JAVA Q&A

본문 바로가기
사이트 내 전체검색

HTML/JAVA Q&A

IE 패치에 따른 object, embed, applet 여러가지 대처 방안

페이지 정보

본문

기존에 여러가지 방법들이 나와 내가 알고 있는 방법들을 소개하려고 합니다..

html>
<body>
<embed src="examplecontrol">
</body>
</html>



<html>
<body>
<script src="Embed.js"></script>
</body>

Embed.js
document.write(‘<embed src=”examplecontrol”>’);

장점: 마소의 권고 방안(?)
단점: embed,object 시킬 파일마다 js파일을 생성해주어야함



#########################################

-------------------------------------------view_obj.js 파일생성

// ie 오브젝패치
function view_obj(objhtml)
{ document.write(objhtml); }
-------------------------------------------

-------------------------------------------view_obj.js 파일 불러오기
<head>
<SCRIPT language="javaSCRIPT"  src="view_obj.js"></SCRIPT>
</head>
-------------------------------------------

-------------------------------------------적용시킬 embed 에 넣어주기
<SCRIPT>view_obj('<embed src=...>');</SCRIPT>
-------------------------------------------

장점: 여러 embed를 js파일 추가없이 할수 있다.
단점: 한줄로 작성해야 오류가 없기 때문에 조금 보기가 안좋다





###########################################



---------------------------------------------------------------------view_obj.js 파일생성
  function flash_movie(src, ids, width, height, wmode)
  {
      var wh = "";
      if (parseInt(width) && parseInt(height))
          wh = " width='"+width+"' height='"+height+"' ";
      return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
  }

  function obj_movie(src, ids, width, height, autostart)
  {
      var wh = "";
      if (parseInt(width) && parseInt(height))
          wh = " width='"+width+"' height='"+height+"' ";
      if (!autostart) autostart = false;
      return "<embed src='"+src+"' "+wh+" autostart='"+autostart+"'></embed>";
  }

  function doc_write(cont)
  {
      document.write(cont);
  }
---------------------------------------------------------------------

---------------------------------------------------------------------view_obj.js 파일 불러오기
<head>
<SCRIPT language="javaSCRIPT"  src="view_obj.js"></SCRIPT>
</head>
---------------------------------------------------------------------

---------------------------------------------------------------------
<script>doc_write(flash_movie("플래시경로", "id", 가로픽셀, 세로픽셀, "모드"));</script>

적용예제 :
<script>doc_write(flash_movie("main.swf", "mainflash", 450, 100, "transparent"));</script>
---------------------------------------------------------------------

장점: 참 편하다, 보기도 좋다.
단점: 어찌됬건 우리가 바라는 것은 기존 사용하는데로 <embed>써도 컨트롤 활성화 패치가 안뜨게 하는것이다.

댓글목록

등록된 댓글이 없습니다.

Total 12건 1 페이지
HTML/JAVA Q&A 목록
번호 제목 글쓴이 조회 날짜
12 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 4776 11-19
11 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3294 11-01
10 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 6365 08-25
열람중 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 4911 07-20
8 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 5894 07-19
7 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3236 01-29
6 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 3344 01-29
5 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 6119 01-29
4 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 2265 01-29
3 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 6742 01-29
2 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 2412 01-29
1 no_profile 이즈쪽지보내기 자기소개 아이디로 검색 전체게시물 2088 07-03

검색

회원로그인

회원가입

사이트 정보

컴퓨터 정보,윈도우즈,리눅스,포토샵,3ds
맥스,프로그래밍 강좌팁

접속자집계

오늘
258
어제
569
최대
5,287
전체
636,533
Copyright © www.qdata.co.kr All rights reserved.