MyWikiBiz, Author Your Legacy — Friday November 29, 2024
Jump to navigationJump to search
597 bytes added
, 08:43, 20 April 2007
Line 1: |
Line 1: |
| + | <pre><nowiki> |
| + | if (window.showModalDialog && document.compatMode && document.compatMode == "CSS1Compat") |
| + | { |
| + | var oldWidth; |
| + | var docEl = document.documentElement; |
| + | |
| + | function fixIEScroll() |
| + | { |
| + | if (!oldWidth || docEl.clientWidth > oldWidth) |
| + | doFixIEScroll(); |
| + | else |
| + | setTimeout(doFixIEScroll, 1); |
| + | |
| + | oldWidth = docEl.clientWidth; |
| + | } |
| + | |
| + | function doFixIEScroll() { |
| + | docEl.style.overflowX = (docEl.scrollWidth - docEl.clientWidth < 4) ? "hidden" : ""; |
| + | } |
| + | |
| + | document.attachEvent("onreadystatechange", fixIEScroll); |
| + | attachEvent("onresize", fixIEScroll); |
| + | } |
| + | // </nowiki></pre> |
| + | |
| // This script changes the "Your signature with timestamp" edit button to use a real em dash instead of two hyphens. <pre><nowiki> | | // This script changes the "Your signature with timestamp" edit button to use a real em dash instead of two hyphens. <pre><nowiki> |
| | | |