summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-24 11:15:30 +0100
committerAndrew Dolgov <[email protected]>2006-02-24 11:15:30 +0100
commit97dcd654bb1961e43914e0502ae38d6504204e62 (patch)
tree464404f1362b45f365af8766ba243ac14905b082 /prefs.php
parent98bea1b16385000db352ff5ab297e9c7c20c21d4 (diff)
Opera compatibility fixes
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/prefs.php b/prefs.php
index 71be40338..75370f9f6 100644
--- a/prefs.php
+++ b/prefs.php
@@ -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>