if (typeof window.addEventListener != "undefined") { window.addEventListener("load",rollover); } else { window.attachEvent("onload",rollover) } function rollover(){ alert("ok"); }
时间: 2024-10-30 03:04:22
if (typeof window.addEventListener != "undefined") { window.addEventListener("load",rollover); } else { window.attachEvent("onload",rollover) } function rollover(){ alert("ok"); }