2012-06-18 5 views
0

플래시를 사용할 수 없을 때 대체 콘텐츠를 표시하도록 플래시 페이지를 조정하고 있지만 사용하는 방법은 많은 콘텐츠가있는 전체 대체 대체 페이지에 적합하지 않습니다. 현재, 다른 내용은 다음과 같이 제공됩니다 :대체 플래시 콘텐츠 제공

var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); 
if(hasRightVersion) { // if we've detected an acceptable version 
    if (AC_FL_RunContent == 0) { 
     alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder."); 
    } else { 
     // embed the flash movie 
     AC_FL_RunContent(
       'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0', 
       'width', '1000', 
       'height', '688', 
       'src', 'wot', 
       //etc, etc... 
     ); //end AC code 
    } 
} else { // flash is too old or we can't detect the plugin 
    var alternateContent = 
      '<p>&nbsp;</p>' 
      + '<p>This website requires a newer version of the Adobe Flash Player.</p>' 
      + '<p>&nbsp;</p>' 
      + '<p>&nbsp;</p>' 
      + '<p><a href="http://www.macromedia.com/go/getflash/">Get the Latest Flash Player here.</a></p>' 
      + '<p><a href="http://www.macromedia.com/go/getflash/"><img src="images/get_flash_player.gif" alt="Download Flash Player" width="88" height="31" border="0" /></a></p>' 
      + '<p>&nbsp;</p>' 
      + '<p>&nbsp;</p>'; 
    document.write(alternateContent); // insert non-flash content 
} 

내가 역할을 할 새로운 내용이 그러나, "플래시를 얻을"메시지보다 훨씬 더 많은입니다.

많은 HTML (및 자바 스크립트)을 제공하는 더 좋은 방법이 있습니까? 어떤 종류의 포함을 통해? 나는 어떤 종류의 리다이렉션도하고 싶지 않다. 그렇지 않습니까? 방법 :

답변

2

가장 좋은 방법은

플래시 플레이어가

봐에

을 설치 한 경우 그 DIV 내부의 플래시 플레이어를로드하는 데 SWFObject를 사용하여 다음에 내부 대체 시스템 사업부를 가지고 데 SWFObject를 사용하는 것입니다 이 페이지의 SWFObject 동적 게시를 사용하여 Flash Player 컨텐츠를 포함하십시오. http://code.google.com/p/swfobject/wiki/documentation

아래 : HTML을 사용하여 Flash 컨텐츠를 구성하는 방법은 무엇입니까? 당신은 당신의 매개 변수로 먹이를 필요

flashvars devicefont (more info) 
allowscriptaccess (more info here and here) 
seamlesstabbing (more info) 
allowfullscreen (more info) 
allownetworking (more info) 

,

var params = {allowscriptaccess:'always', allownetworking:'allways'} 

이 그런 다음 로더 라인 HotHeadMartin의 대답에 추가

+0

그저 일종의 작품이지만, 원래 플래시가 어떻게 조합되어 있는지 잘 모르니까요. 테스트 페이지에서 시험해 볼 때 음악이 제대로로드되지 않고 라이브 사이트에서 보는 것과 다릅니다. Flash가 제대로 작동한다는 것을 알고 있기 때문에 위의 코드로 작업 할 수 있습니까? 라이브 사이트 URL : http://wot-sound.co.uk/ 내 테스트 구현 : http://lisadearaujo.com/clientaccess/wot-sound/indexFlash.htm – yolise

0

에 유모차가 있음을 공급 : 여기에 좋은 코드 생성기가 :
http://www.bobbyvandersluis.com/swfobject/generator/index.html

'동적 게시'를 선택하고 일부 입력란을 작성하십시오.

+0

감사합니다. 늦은 응답에 대해 유감스럽게 생각합니다 (서버에 액세스하는 데 오래 걸렸습니다). 완벽하게 일했습니다. (죄송합니다 - 귀하의 의견을 투표 할 수있는 충분한 점수가 없습니다.) – yolise

관련 문제