0
我在我的頁面上有Flash地圖。我的問題是,當頁面加載一段時間後,我可以看到替代內容,然後看到地圖。Swfobject - 替代內容在閃光之前加載
HTML:
<div class="flash-wrapper">
<div id="flash-map" class="flash">
<div id="noflash">
<p>
<span>Aby poprawnie wyświetlić tę stronę prosimy o zainstalowanie<br />programu Adobe Flash Player.</span>
<a class="FlashAltButton" href="http://www.adobe.com/go/getflashplayer" title="Pobierz Adobe Flash Player"><img src="/pl/img/get_flash_logo.png" alt="Pobierz Adobe Flash Player" width="158" height="39" /></a>
</p>
</div>
</div>
</div>
SwfObject的:
swfobject.embedSWF("http://site/flash/contest/map.swf",
"flash-map",
"410",
"365",
"9.0.0",
"http://site/flash/contest/expressInstall.swf",
flashvars,
params
);
var params = {
quality: 'high',
bgcolor: '#ffffff',
play: "true",
loop: "true",
wmode: "transparent",
scale: "showall",
menu: "true",
devicefont: "false",
salign: "",
allowFullScreen: "true",
allowScriptAccess: "sameDomain"
};
更改swf,以便您的第一幀加載非常快+爲其餘的KB添加預加載器。 – pkyeck