我想知道如果它可能調整與JavaScript的Flash。我不能單獨更改flash對象中的任何代碼,我所擁有的僅僅是html,javascript和php。用Javascript調整Flash的大小?
繼承人是我迄今爲止的發現:
var changeMe = document.getElementById("content_embed");
changeMe.height = yy;
changeMe.width = xx;
if (navigator.userAgent.toLowerCase().indexOf("safari")!=-1) {
var changemeObject = document.getElementById("content_object");
changeMeObject.height = yy;
changeMeObject.width = xx;
}
}
內容是嵌入嵌入標籤和內容對象是在Flash對象標記。這在鉻(可能是Firefox)的作品,但不是即。 在Internet Explorer中出現錯誤:Unable to set value of the property 'height': object is null or undefined
以下是我一直使用的示例頁面:http://futuregamespc.com/behind/Popup/ 任何人都可以幫忙嗎?謝謝你們,你們讓這個網站真棒。
嘗試使用jquery將所有那些瀏覽器特定的代碼抽象出來。 – 2011-05-22 03:21:06
http://futuregamespc.com/behind/Popup/index2.html這樣做,它不能在鉻或Internet Explorer中工作,並足夠奇怪,它不會返回任何錯誤,只是不起作用。 – Matt 2011-05-22 03:32:38