解决非IE浏览器不能获取flash对象的问题

function getFlashMovieObject(movieName){
if (window.document[movieName]){
return window.document[movieName];
}
else if (navigator.appName.indexOf("Microsoft")==-1){
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
}
else{
return document.getElementById(movieName);
}

 

posted on 2010-06-21 00:29  riacool  阅读(535)  评论(0编辑  收藏  举报

导航