]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/head.html
* Added in a bunch of stupid JavaScript to allow the instant message
[citadel.git] / webcit / static / head.html
index 2e3b8f600925b30da7f3169119e575c003acd49d..bad4cadc944e42db738318f2681b2ac1aab1124e 100644 (file)
@@ -67,6 +67,14 @@ body {
        background: #444455;
 }
 
+#page_popup {
+       position:absolute;
+       width=600px;
+       height=400px;
+       background-color: #880000;
+       z-index: 2;
+}
+
 #content {
        position:fixed;
        display:block;
@@ -388,6 +396,26 @@ span.key {
 <!-- end tree view styles -->
 
 </style>
-<?PAGERSCRIPT>
+
+<script language="JavaScript">
+
+var browserType;
+
+if (document.layers) {browserType = "nn4"}
+if (document.all) {browserType = "ie"}
+if (window.navigator.userAgent.toLowerCase().match("gecko")) {browserType= "gecko"}
+
+function hide_page_popup() {
+  if (browserType == "gecko" )
+     document.poppedLayer = eval('document.getElementById(\'page_popup\')');
+  else if (browserType == "ie")
+     document.poppedLayer = eval('document.all[\'page_popup\']');
+  else
+     document.poppedLayer = eval('document.layers[\'`page_popup\']');
+  document.poppedLayer.style.visibility = "hidden";
+}
+
+</script>
+
 </head>
 <body>