1
我得到這個錯誤 「Microsoft JScript運行錯誤:」SWFObject的未定義「JavaScript的不工作SWFObject的是未定義
我的代碼看起來像這樣
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<div id="flashcontent">This text is replaced by the Flash movie. </div>
<script type="text/javascript">
var rndPick = 2;
var rndPick = Math.floor(Math.random() * 16) + 1;
var movie = "/Flash/sam" + rndPick + ".swf";
var so = new SWFObject(movie, "mymovie", "955", "170", "8", "#336699");
so.write("flashcontent");
setTimeout("location.reload(true);", 14500);
</script>
謝謝,就是這樣,我還沒有看到任何關於SWFObject 1.5和2.2不兼容的話題。 – StephanM