通过jquery .load()
加载soundcloud嵌入式播放器在IE中,只要swf在其中,负载就会冻结并变得不完整。 如果没有,查询工作正常。它也适用于chrome,Firefox和Safari。
function ajaxLoad(id){
var url = "http://www.konstructive.com/projects/karlssonwinnberg/?page_id=118&cat="+id;
$('#container').empty();
$('#container').load(url, function(){
$('#container').masonry('reload');
Shadowbox.clearCache();
Shadowbox.setup();
//Masonry();
ClickOptions();
});
return false;
}
对象看起来像这样
<div class="item">
<object height="571" width="571"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F24256938&auto_play=false&player_type=artwork&color=000000"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="571" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F24256938&auto_play=false&player_type=artwork&color=000000" type="application/x-shockwave-flash" width="571"></embed> </object>
</div>
你可以在这里查看演示版 http://www.konstructive.com/projects/karlssonwinnberg/
和这里的ajax加载页面 http://www.konstructive.com/projects/karlssonwinnberg/?page_id=118&cat=0
还有另一种使用ajax加载flash的方法吗? 非常感谢任何帮助