플래시를 사용할 수 없을 때 대체 콘텐츠를 표시하도록 플래시 페이지를 조정하고 있지만 사용하는 방법은 많은 콘텐츠가있는 전체 대체 대체 페이지에 적합하지 않습니다. 현재, 다른 내용은 다음과 같이 제공됩니다 :대체 플래시 콘텐츠 제공
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> </p>'
+ '<p>This website requires a newer version of the Adobe Flash Player.</p>'
+ '<p> </p>'
+ '<p> </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> </p>'
+ '<p> </p>';
document.write(alternateContent); // insert non-flash content
}
내가 역할을 할 새로운 내용이 그러나, "플래시를 얻을"메시지보다 훨씬 더 많은입니다.
많은 HTML (및 자바 스크립트)을 제공하는 더 좋은 방법이 있습니까? 어떤 종류의 포함을 통해? 나는 어떤 종류의 리다이렉션도하고 싶지 않다. 그렇지 않습니까? 방법 :
그저 일종의 작품이지만, 원래 플래시가 어떻게 조합되어 있는지 잘 모르니까요. 테스트 페이지에서 시험해 볼 때 음악이 제대로로드되지 않고 라이브 사이트에서 보는 것과 다릅니다. Flash가 제대로 작동한다는 것을 알고 있기 때문에 위의 코드로 작업 할 수 있습니까? 라이브 사이트 URL : http://wot-sound.co.uk/ 내 테스트 구현 : http://lisadearaujo.com/clientaccess/wot-sound/indexFlash.htm – yolise