0
嗨我已經構建了一個函數來接受圖像列表作爲參數。但將在IE 8 一個錯誤,這是代碼將圖像列表傳遞給函數時IE8中的JavaScript錯誤
function MM_reloadPage (init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
}}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/tv_aura_2.jpg','images/tv_aura_4.jpg','images/tv_bk_2.jpg','images/tv_dia_2.jpg','images/tv_gsk_2.jpg','images/tv_gsk_4.jpg','images/tv_hutch_2.jpg','images/tv_mini_2.jpg','images/tv_poppy_2.jpg','images/tv_red_2.jpg','images/tv_island_2.jpg','images/tv_veet_2.jpg')">
我還沒有包括所有的HTML和它引發我一個錯誤
The value of the property 'MM_preloadImages' is null or undefined, not a Function
object
,我想不出我的js功能的錯誤。誰能幫忙?