플래시 질문 좀 드릴게요... ㅜ.ㅜ > 자유게시판

자유게시판

플래시 질문 좀 드릴게요... ㅜ.ㅜ 정보

플래시 질문 좀 드릴게요... ㅜ.ㅜ

본문

배경색을 검은색으로 했는데

왜 게시판에 올리면 하얀색으로 될까요?

아무리 용을 써도 않되는데...

책보고 따라하기도 무지하게 힘드네요...ㅜ.ㅜ
추천
0

첨부파일

test001.swf (306.4K) 0회 다운로드 2007-10-29 18:47:10
  • 복사

댓글 10개

요즘 프래시 기술방법이 변경된건 알고 계시죠?
엤날처럼 아래소스를 사용하지 않을거라 생각하고~
<object classid="clsid:D27CDB6E-AE6D ~~~~~~~~등등
<param name="=ShockwaveFlash" width="100" heigh  등등등
</object>
위 방식은 요즘은 되긴 되지만 액스피에서 데두리가 생기고 클릭이 안되는 현상 때문에

요즘은 스크립을 이용하여
<script src="top/flash.js"></script>
<script>
msemb = new MS_Embed();
msemb.init('top/Movie1.swf','162','249');
msemb.show();
</script>

처럼 하시면 됩니다.

그리고 위의 파일링크가 있듯이
flash.js 파일을 하나 만드시면 됩니다.
이안에 들어갈 내용은

function MS_Flash(fid,src,wid,hei,fvs,wmd) {
  this.fPrint = '';
  this.Id = document.getElementById(fid);
  this.Src = src;
  this.Width = wid;
  this.Height = hei;
  this.FlashVars = ( typeof fvs != 'undefined')? fvs :'';
  this.Wmod = ( typeof wmd != 'undefined')? wmd :'';
  if(isObject(Id)) {
    fPrint = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"';
    fPrint += ' width="'+Width+'"';
    fPrint += ' height="'+Height+'">';
    fPrint += '<param name="movie" value="'+Src+'">';
    fPrint += '<param name="quality" value="high">';
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : '';
    fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : '';
    fPrint += '<embed';
    fPrint += fPrint + ' src="'+Src+'"';
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : '';
    fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : '';
    fPrint += ' quality="high"';
    fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"';
    fPrint += ' type="application/x-shockwave-flash"';
    fPrint += ' width="'+Width+'"';
    fPrint += ' height="'+Height+'"';
    fPrint += '></embed>';
    fPrint += '</object>';
    Id.innerHTML = fPrint;
  }
}

function isObject(a) {
    return (a && typeof a == 'object');
}

function MS_Embed()
{
  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( s ,w , h, getType ) {
      getType = (getType != undefined)? getType :'flash';
      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 ); 
  }
 
}




입니다.
<script>doc_write(flash_movie('<?=$g4[patn]?>/플래시파일 위치.swf', '_g4_1', '가로', '세로', 'transparent'));</script>

transparent <-- 요게 투명도 조절하는 겁니다. 요기에 검은 먹물 뿌리면 검게 나타납니다.
당근 그누에서만 사용하는 코드입니다.
게시판에 플래시 업로드하면 테두리 없이 사용 가능한데 그 이유가 저 스크립트가 적용되기 때문이죠...

타 게시판에서 사용하려면 타 게시판용 소스를 사용하셔야겠죠...
© SIRSOFT
현재 페이지 제일 처음으로