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

· 18년 전 · 3333 · 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파일안에 주석달린 부분이 있더군요~아주 친절하게요~
그곳에다가 붙여넣기 하여 추가하여주니 아주 잘 돌아갑니다.

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

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

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

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

프로그램

+
제목 글쓴이 날짜 조회
18년 전 조회 3,688
18년 전 조회 2,915
18년 전 조회 2,963
18년 전 조회 3,603
18년 전 조회 2,164
18년 전 조회 2,274
18년 전 조회 3,171
18년 전 조회 1,854
18년 전 조회 2,224
18년 전 조회 2,529
18년 전 조회 1,772
18년 전 조회 2,101
18년 전 조회 1,989
18년 전 조회 2,507
18년 전 조회 1,925
18년 전 조회 1,718
18년 전 조회 1,748
18년 전 조회 1,723
18년 전 조회 2,756
18년 전 조회 1,548
18년 전 조회 5,665
18년 전 조회 2,396
18년 전 조회 1,663
18년 전 조회 4,708
18년 전 조회 2,054
18년 전 조회 4,841
18년 전 조회 3,188
18년 전 조회 2,132
18년 전 조회 1,825
18년 전 조회 2,097
18년 전 조회 1,721
18년 전 조회 1,836
18년 전 조회 1,836
18년 전 조회 2,476
18년 전 조회 3,496
18년 전 조회 5,968
18년 전 조회 3,860
18년 전 조회 3,055
18년 전 조회 2,130
18년 전 조회 2,401
18년 전 조회 2,182
18년 전 조회 2,303
18년 전 조회 2,400
18년 전 조회 2,839
18년 전 조회 2,534
18년 전 조회 1,989
18년 전 조회 3,123
18년 전 조회 3,585
18년 전 조회 3,833
18년 전 조회 3,334
18년 전 조회 3,376
18년 전 조회 2,560
18년 전 조회 2,463
18년 전 조회 2,449
18년 전 조회 2,318
18년 전 조회 2,553
18년 전 조회 3,850
18년 전 조회 3,651
18년 전 조회 2,080
18년 전 조회 2,018
18년 전 조회 1,552
18년 전 조회 3,885
18년 전 조회 5,889
18년 전 조회 6,985
18년 전 조회 2,465
18년 전 조회 2,710
18년 전 조회 4,166
18년 전 조회 2,172
18년 전 조회 3,617
18년 전 조회 2,873
18년 전 조회 2,730
18년 전 조회 2,200
18년 전 조회 2,463
18년 전 조회 2,592
18년 전 조회 3,087
18년 전 조회 3,732
18년 전 조회 3,271
18년 전 조회 2,778
18년 전 조회 2,271
18년 전 조회 2,940
18년 전 조회 3,030
18년 전 조회 2,540
18년 전 조회 2,296
18년 전 조회 3,329
18년 전 조회 4,849
18년 전 조회 5,068
18년 전 조회 2,291
18년 전 조회 2,186
18년 전 조회 4,995
18년 전 조회 8,959
18년 전 조회 2,044
18년 전 조회 4,922
18년 전 조회 4,361
18년 전 조회 2,604
18년 전 조회 4,958
18년 전 조회 2,786
18년 전 조회 3,666
19년 전 조회 2,619
19년 전 조회 3,431
19년 전 조회 1,943
🐛 버그신고