Line 91: |
Line 91: |
| } | | } |
| | | |
− | document.attachEvent("onreadystatechange", fixIEScroll); | + | if (document.attachEvent){ |
− | attachEvent("onresize", fixIEScroll); | + | document.attachEvent("onreadystatechange", fixIEScroll); |
| + | } |
| + | if (attachEvent){ |
| + | attachEvent("onresize", fixIEScroll); |
| + | } |
| } | | } |
| | | |