asp에서 이올라스 패치 해결방법 질문드립니다.

· 19년 전 · 3702 · 3
본문내용은 아래와 같습니다.
일반적인 플래쉬패치는 해보아서 알고 있으나.
asp  andif문이 들어 있는것은 처음접해보았기에 질문드립니다.
벌써 한시간 넘게 목을 매고 있네요..헐..ㅡ.ㅡ;;
-----------------------------------------------------------
<TD WIDTH=214 HEIGHT=170 bgcolor="F9FAFF">
    <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="214" height="170">
      <% If Session("userid") = "" Then %>
      <param name="movie" value="../menu_sub02.swf">
      <param name="quality" value="high">
    <param name=wmode value=transparent>
      <embed src="../menu_sub02.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="214" height="170"></embed>
     <% End If %>
   <%
   db.Open DSNName
   If Session("userid") <> "" Then
      SQL = "Select mem_rate From Member Where mem_userid='"& Session("userid") & "'"
       Set loggubun = db.Execute(SQL)
       If Cint(loggubun("mem_rate"))=1 Then '관리자라면
   %>
   <param name="movie" value="../menu_sub01.swf">
      <param name="quality" value="high">
    <param name=wmode value=transparent>
      <embed src="../menu_sub01.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="214" height="170"></embed>
     <% Else %>
     <param name="movie" value="../menu_sub02.swf">
      <param name="quality" value="high">
    <param name=wmode value=transparent>
      <embed src="../menu_sub02.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="214" height="170"></embed>
     <%
      End If
    loggubun.close
     End If
   %>
     </object></TD>
-----------------------------------------------------------
↑↑↑↑
고치고자 하는 소스는 위의 소스입니다.
참고로 파일의 위치는   root/intro/intro.asp파일에서 플래쉬파일이 들어가는
부분의 소스입니다.
그래서 root/js/embed.js파일을 생성하여 넣어두었습니다.
embed.js파일의 내용은 아래와 같습니다.
---------------------------------------------------------------
//##################################################################################
//IE 패치에 따른 추가 스크립트
function setEmbed()
{
  var obj = new String;
  var parameter = new String;
  var embed = new String;
  var html = new String;
  var allParameter = new String;
  var clsid = new String;
  var codebase = new String;
  var pluginspace = new String;
  var embedType = new String;
  var src = new String;
  var width = new String;
  var height = new String;
  this.init = function( getType , s ,w , h ) {
      if ( getType == "flash")
      {
        clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";       
        codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
        pluginspage = "http://www.macromedia.com/go/getflashplayer";
        embedType = "application/x-shockwave-flash";
      }
      /* type 추가
      else if ( )
      {
      }
      */
           
      parameter += "<param name='movie' value='"+ s + "'>\n"; 
      parameter += "<param name='quality' value='high'>\n";   
     
      src = s;
      width = w;
      height = h;
  }
 
  this.parameter = function( parm , value ) {     
      parameter += "<param name='"+parm +"' value='"+ value + "'>\n";       
      allParameter += " "+parm + "='"+ value+"'";
  } 
 
  this.show = function() {
      if ( clsid )
      {
        obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n";
      }
      embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n";
     
      if ( obj )
      {
        embed += "</object>\n";
      }
      html = obj + parameter + embed;
      document.write( html ); 
  }
}
//##################################################################################
 
---------------------------------------------------------------
기존에는 js파일을 플래쉬가 들어가는 페이지에
<script language="Javascript" src="../js/embed.js"></script>
다음과 같이 불러 온후에 작업을 하였으나..
조금 변경되어지고..asp 이프문이 들어가다보니깐..
어찌할지를 모르겠습니다.
빠른 답변 부탁드립니다~(__)

 
[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]
|

댓글 3개

찾으시는것이 이것인가요?

그누보드4 > 팁 > 소스 수정 필요없는 IE 패치
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=3819
제가 요글 막 보고왔습니다요..ㅋㅋ리풀달아주시기 전에요..
이거 완전 막강하네요..진짜 좋은 자료 감사하고..
답변 달아주신 root님 감사합니다.~
역시..네X버 지식 X 보다 더 빠른 답변으로 인해 해결했습니다~
감사합니다(__)

참고사항으로 한자 적어보겠습니다.
다른분께서 저와 같은 질문으로 검색을 대비하여서~^^
(오지랍이 넓어서..ㅋㅋ)
--------------------------------------------------
참고- js파일에 클래스 아이디를 추가하셔야 합니다~
플래쉬가 삽입되어지면 고유의 클래스 아이디가 생성이 되어집니다.
ex) D27CDB6E-AE6D-11cf-96B8-444553540000

예와 같이 아이디가 생성되면은 복사하셔서..
js파일안에 주석달린 부분이 있더군요~아주 친절하게요~
그곳에다가 붙여넣기 하여 추가하여주니 아주 잘 돌아갑니다.

-------------------------------------------------------

역시 아는것이 힘입니다..이파일사용하여 새로운 방법을 하나 알게되어 너무좋네요
여태까지는 완전 노가다로 다 찾아서 작업을 하였는데..

너무 기쁜마음에 횡설수설하였습니다.
앞으로 더 노력해야겠습니다..^^:

그럼 모두 올해에는 대박 나세요~^^
근데 이 패치는 플래시가 리플래시 되면서 약간 튀는 듯한 느낌이 있습니다.
플래시의 로딩에 영향을 미치기도 하는 것 같구요.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
19년 전 조회 4,032
19년 전 조회 3,278
19년 전 조회 3,342
19년 전 조회 3,956
19년 전 조회 2,520
19년 전 조회 2,621
19년 전 조회 3,546
19년 전 조회 2,209
19년 전 조회 2,591
19년 전 조회 2,875
19년 전 조회 2,125
19년 전 조회 2,459
19년 전 조회 2,341
19년 전 조회 2,867
19년 전 조회 2,285
19년 전 조회 2,085
19년 전 조회 2,115
19년 전 조회 2,097
19년 전 조회 3,113
19년 전 조회 1,899
19년 전 조회 6,008
19년 전 조회 2,756
19년 전 조회 2,027
19년 전 조회 5,066
19년 전 조회 2,406
19년 전 조회 5,197
19년 전 조회 3,577
19년 전 조회 2,480
19년 전 조회 2,168
19년 전 조회 2,490
19년 전 조회 2,084
19년 전 조회 2,198
19년 전 조회 2,192
19년 전 조회 2,855
19년 전 조회 3,848
19년 전 조회 6,336
19년 전 조회 4,214
19년 전 조회 3,415
19년 전 조회 2,491
19년 전 조회 2,775
19년 전 조회 2,558
19년 전 조회 2,666
19년 전 조회 2,756
19년 전 조회 3,184
19년 전 조회 2,889
19년 전 조회 2,356
19년 전 조회 3,496
19년 전 조회 3,948
19년 전 조회 4,197
19년 전 조회 3,703
19년 전 조회 3,735
19년 전 조회 2,926
19년 전 조회 2,835
19년 전 조회 2,820
19년 전 조회 2,689
19년 전 조회 2,920
19년 전 조회 4,237
19년 전 조회 4,010
19년 전 조회 2,464
19년 전 조회 2,374
19년 전 조회 1,923
19년 전 조회 4,267
19년 전 조회 6,248
19년 전 조회 7,353
19년 전 조회 2,844
19년 전 조회 3,071
19년 전 조회 4,547
19년 전 조회 2,555
19년 전 조회 3,981
19년 전 조회 3,242
19년 전 조회 3,116
19년 전 조회 2,571
19년 전 조회 2,856
19년 전 조회 2,954
19년 전 조회 3,483
19년 전 조회 4,118
19년 전 조회 3,658
19년 전 조회 3,156
19년 전 조회 2,667
19년 전 조회 3,324
19년 전 조회 3,412
19년 전 조회 2,922
19년 전 조회 2,670
19년 전 조회 3,700
19년 전 조회 5,254
19년 전 조회 5,474
19년 전 조회 2,695
19년 전 조회 2,566
19년 전 조회 5,381
19년 전 조회 9,357
19년 전 조회 2,420
19년 전 조회 5,312
19년 전 조회 4,757
19년 전 조회 2,990
19년 전 조회 5,367
19년 전 조회 3,186
19년 전 조회 4,071
19년 전 조회 3,010
19년 전 조회 3,832
19년 전 조회 2,347