2012-04-05 58 views

回答

0

你是否可以訪問JavaScript中的swfobject?和不是做這樣的事情?

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

使用'函數loadVideo(playerUrl,自動播放){ swfobject.embedSWF( playerUrl + '&的rel = 1&邊界= 0&FS = 1&自動播放=' + (自動播放IM?1:0)+ '&版本= 2.2' ,'player','550','350','9.0.0',false, false,{allowfullscreen:'true'}); }' – Dannymadethis 2012-04-07 15:51:12