diff options
author | Andrew Dolgov <[email protected]> | 2006-02-24 11:15:30 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-24 11:15:30 +0100 |
commit | 97dcd654bb1961e43914e0502ae38d6504204e62 (patch) | |
tree | 464404f1362b45f365af8766ba243ac14905b082 /prefs.php | |
parent | 98bea1b16385000db352ff5ab297e9c7c20c21d4 (diff) |
Opera compatibility fixes
Diffstat (limited to 'prefs.php')
-rw-r--r-- | prefs.php | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -47,7 +47,14 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> -<body onload="init()"> +<body> + +<script type="text/javascript"> +if (document.addEventListener) { + document.addEventListener("DOMContentLoaded", init, null); +} +window.onload = init; +</script> <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> <? if (get_pref($link, 'DISPLAY_HEADER')) { ?> @@ -127,5 +134,20 @@ <? db_close($link); ?> +<script type="text/javascript"> + /* for IE */ + function statechange() { + if (document.readyState == "interactive") init(); + } + + if (document.readyState) { + if (document.readyState == "interactive" || document.readyState == "complete") { + init(); + } else { + document.onreadystatechange = statechange; + } + } +</script> + </body> </html> |